Skip to content

Commit

Permalink
fix: increase epoch time in sync_state_dump (near#12568)
Browse files Browse the repository at this point in the history
https://nayduck.nearone.org/#/run/833

Apparently the current failure is triggered regularly for 9s epochs and
not triggered for 21s epochs. While this is not proper fix, it unblocks
the pipeline.
  • Loading branch information
Longarithm authored Dec 6, 2024
1 parent 6af8e01 commit 6725f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/src/tests/client/sync_state_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ fn ultra_slow_test_sync_state_dump() {
);
// Needs to be long enough to give enough time to the second node to
// start, sync headers and find a dump of state.
genesis.config.epoch_length = 30;
genesis.config.epoch_length = 70;

let _dump_dir =
Arc::new(tempfile::Builder::new().prefix("state_dump_1").tempdir().unwrap());
Expand Down Expand Up @@ -353,7 +353,7 @@ fn ultra_slow_test_sync_state_dump() {
let arbiters_holder = Arc::new(RwLock::new(vec![]));
let arbiters_holder2 = arbiters_holder;

wait_or_timeout(1000, 60000, || async {
wait_or_timeout(1000, 120000, || async {
if view_client2_holder.read().unwrap().is_none() {
let view_client2_holder2 = view_client2_holder.clone();
let arbiters_holder2 = arbiters_holder2.clone();
Expand Down

0 comments on commit 6725f08

Please sign in to comment.