More uploads
This commit is contained in:
parent
3df4a97bba
commit
23f5318dfc
|
@ -61,22 +61,16 @@ namespace Tests.BasicTests
|
||||||
|
|
||||||
var checkTime = DateTime.UtcNow + TimeSpan.FromMinutes(1);
|
var checkTime = DateTime.UtcNow + TimeSpan.FromMinutes(1);
|
||||||
var endTime = DateTime.UtcNow + TimeSpan.FromHours(10);
|
var endTime = DateTime.UtcNow + TimeSpan.FromHours(10);
|
||||||
var uploadInterval = 0;
|
|
||||||
while (DateTime.UtcNow < endTime)
|
while (DateTime.UtcNow < endTime)
|
||||||
{
|
{
|
||||||
CreatePeerConnectionTestHelpers().AssertFullyConnected(GetAllOnlineCodexNodes());
|
CreatePeerConnectionTestHelpers().AssertFullyConnected(GetAllOnlineCodexNodes());
|
||||||
CheckRoutingTables(GetAllOnlineCodexNodes());
|
CheckRoutingTables(GetAllOnlineCodexNodes());
|
||||||
|
|
||||||
if (uploadInterval == 0)
|
|
||||||
{
|
|
||||||
uploadInterval = 2;
|
|
||||||
var node = RandomUtils.PickOneRandom(nodes.ToList());
|
var node = RandomUtils.PickOneRandom(nodes.ToList());
|
||||||
var file = GenerateTestFile(50.MB());
|
var file = GenerateTestFile(50.MB());
|
||||||
node.UploadFile(file);
|
node.UploadFile(file);
|
||||||
}
|
|
||||||
else uploadInterval--;
|
|
||||||
|
|
||||||
Thread.Sleep(30000);
|
Thread.Sleep(20000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue