From 23f5318dfc218a7551930dc4533d99110b0a41b3 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 1 Sep 2023 14:40:48 +0200 Subject: [PATCH] More uploads --- Tests/BasicTests/ContinuousSubstitute.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Tests/BasicTests/ContinuousSubstitute.cs b/Tests/BasicTests/ContinuousSubstitute.cs index 0f4570a..6f4ba16 100644 --- a/Tests/BasicTests/ContinuousSubstitute.cs +++ b/Tests/BasicTests/ContinuousSubstitute.cs @@ -61,22 +61,16 @@ namespace Tests.BasicTests var checkTime = DateTime.UtcNow + TimeSpan.FromMinutes(1); var endTime = DateTime.UtcNow + TimeSpan.FromHours(10); - var uploadInterval = 0; while (DateTime.UtcNow < endTime) { CreatePeerConnectionTestHelpers().AssertFullyConnected(GetAllOnlineCodexNodes()); CheckRoutingTables(GetAllOnlineCodexNodes()); - if (uploadInterval == 0) - { - uploadInterval = 2; - var node = RandomUtils.PickOneRandom(nodes.ToList()); - var file = GenerateTestFile(50.MB()); - node.UploadFile(file); - } - else uploadInterval--; + var node = RandomUtils.PickOneRandom(nodes.ToList()); + var file = GenerateTestFile(50.MB()); + node.UploadFile(file); - Thread.Sleep(30000); + Thread.Sleep(20000); } }