Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase timeouts for fetching node in benchmarks and e2e tests #3081

Merged
merged 2 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/shelley/bench/restore-bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down