From 68d19353aadac4477d8ff95e8b6252ca5c734c9e Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 8 Aug 2023 14:42:59 +0200 Subject: [PATCH] moves to 80MB and long timeouts --- DistTestCore/Http.cs | 2 +- Tests/BasicTests/ContinuousSubstitute.cs | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/DistTestCore/Http.cs b/DistTestCore/Http.cs index b66ff75..ff52b42 100644 --- a/DistTestCore/Http.cs +++ b/DistTestCore/Http.cs @@ -76,7 +76,7 @@ namespace DistTestCore var content = new StreamContent(stream); content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); var response = Time.Wait(client.PostAsync(url, content)); - var str =Time.Wait(response.Content.ReadAsStringAsync()); + var str = Time.Wait(response.Content.ReadAsStringAsync()); Log(url, str); return str; }, $"HTTP-POST-STREAM: {route}"); diff --git a/Tests/BasicTests/ContinuousSubstitute.cs b/Tests/BasicTests/ContinuousSubstitute.cs index ff606ef..40bfc77 100644 --- a/Tests/BasicTests/ContinuousSubstitute.cs +++ b/Tests/BasicTests/ContinuousSubstitute.cs @@ -9,6 +9,7 @@ namespace Tests.BasicTests public class ContinuousSubstitute : AutoBootstrapDistTest { [Test] + [UseLongTimeouts] public void ContinuousTestSubstitute() { var nodes = new List(); @@ -51,7 +52,7 @@ namespace Tests.BasicTests Log("Run Test"); PerformTest(primary, secondary); - Thread.Sleep(TimeSpan.FromSeconds(30)); + Thread.Sleep(TimeSpan.FromSeconds(5)); } } finally @@ -61,7 +62,7 @@ namespace Tests.BasicTests } } - private ByteSize fileSize = 10.MB(); + private ByteSize fileSize = 80.MB(); private void PerformTest(IOnlineCodexNode primary, IOnlineCodexNode secondary) { @@ -74,8 +75,6 @@ namespace Tests.BasicTests var downloadedFile = secondary.DownloadContent(contentId); testFile.AssertIsEqual(downloadedFile); - - fileSize = (fileSize.SizeInBytes * 2).Bytes(); }); } }