From 7e5121a642ca2ec2c057d46ab5857d03929be76d Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 22 Aug 2023 09:06:44 +0200 Subject: [PATCH] Fixes test for cloud environment --- ContinuousTests/Tests/HoldMyBeerTest.cs | 2 +- Tests/BasicTests/ContinuousSubstitute.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ContinuousTests/Tests/HoldMyBeerTest.cs b/ContinuousTests/Tests/HoldMyBeerTest.cs index 0f5e422e..a755e9dc 100644 --- a/ContinuousTests/Tests/HoldMyBeerTest.cs +++ b/ContinuousTests/Tests/HoldMyBeerTest.cs @@ -41,7 +41,7 @@ namespace ContinuousTests.Tests }); - var dl = DownloadFile(Nodes[1], cid!); + var dl = DownloadFile(Nodes[0], cid!); file.AssertIsEqual(dl); Stopwatch.Measure(Log, "download-log-asserts", () => diff --git a/Tests/BasicTests/ContinuousSubstitute.cs b/Tests/BasicTests/ContinuousSubstitute.cs index 1723b70e..5b18c340 100644 --- a/Tests/BasicTests/ContinuousSubstitute.cs +++ b/Tests/BasicTests/ContinuousSubstitute.cs @@ -64,9 +64,9 @@ namespace Tests.BasicTests { var blockExpirationTime = TimeSpan.FromMinutes(3); var group = SetupCodexNodes(3, o => o - //.EnableMetrics() + .EnableMetrics() .WithBlockTTL(blockExpirationTime) - .WithBlockMaintenanceInterval(TimeSpan.FromMinutes(1)) + .WithBlockMaintenanceInterval(TimeSpan.FromMinutes(2)) .WithBlockMaintenanceNumber(10000) .WithStorageQuota(2000.MB()));