Sets up continuous test for fetch connectivity.

This commit is contained in:
benbierens 2023-09-05 13:29:31 +02:00
parent ec8114a6a4
commit d498fbbb68
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,18 @@
using DistTestCore.Helpers;
namespace ContinuousTests.Tests
{
public class FetchTest : ContinuousTest
{
public override int RequiredNumberOfNodes => -1;
public override TimeSpan RunTestEvery => TimeSpan.FromMinutes(2);
public override TestFailMode TestFailMode => TestFailMode.AlwaysRunAllMoments;
[TestMoment(t: 0)]
public void CheckConnectivity()
{
var checker = new PeerFetchTestHelpers(Log, FileManager);
checker.AssertFullFetchInterconnectivity(Nodes);
}
}
}

View File

@ -9,11 +9,11 @@ namespace DistTestCore.Helpers
{
private readonly FullConnectivityHelper helper;
private readonly BaseLog log;
private readonly FileManager fileManager;
private readonly IFileManager fileManager;
private readonly ByteSize testFileSize;
private readonly int expectedNumberOfBlocks;
public PeerFetchTestHelpers(BaseLog log, FileManager fileManager)
public PeerFetchTestHelpers(BaseLog log, IFileManager fileManager)
{
helper = new FullConnectivityHelper(log, this);
testFileSize = 10.MB();