From ce19537f84d4e690c7164a17a24af08cfc1d7b9d Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Thu, 13 Jan 2022 09:12:19 +0100 Subject: [PATCH 1/2] Increase timeout for fetching tip in restoration benchmark --- lib/shelley/bench/restore-bench.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shelley/bench/restore-bench.hs b/lib/shelley/bench/restore-bench.hs index 4b29f4e086b..28fc87594a5 100644 --- a/lib/shelley/bench/restore-bench.hs +++ b/lib/shelley/bench/restore-bench.hs @@ -778,7 +778,7 @@ waitForNodeSync => Tracer IO (BenchmarkLog n) -> NetworkLayer IO Block -> IO SlotNo -waitForNodeSync tr nw = loop 480 -- allow 120 minutes for first tip +waitForNodeSync tr nw = loop 960 -- allow 240 minutes for first tip where loop :: Int -> IO SlotNo loop retries = do From 29a9b30b2e1167779b87cc2824c5b063355c8baf Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Thu, 13 Jan 2022 16:05:14 +0100 Subject: [PATCH 2/2] Increase timeout for connection to node in e2e tests --- test/e2e/Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/Rakefile b/test/e2e/Rakefile index 78a02817b7a..1d6c21b02c2 100644 --- a/test/e2e/Rakefile +++ b/test/e2e/Rakefile @@ -86,8 +86,8 @@ task :wait_until_node_synced do puts "\n >> Waiting for node to be synced" network = CardanoWallet.new.misc.network - # it seems that occasionally cardano-node needs more time to spin up - timeout = 7200 + # allow 180 mins for connecting to the node in case it needs to replay ledger + timeout = 10800 current_time = Time.now timeout_treshold = current_time + timeout puts "Timeout: #{timeout}s"