Sets up continuous test for fetch connectivity.
This commit is contained in:
parent
ec8114a6a4
commit
d498fbbb68
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue