More uploads

This commit is contained in:
benbierens 2023-09-01 14:40:48 +02:00
parent 3df4a97bba
commit 23f5318dfc
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 4 additions and 10 deletions

View File

@ -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);
} }
} }