Skip to content

Commit

Permalink
Merge pull request #4595 from eval-exec/exec/fix-ci
Browse files Browse the repository at this point in the history
Integration Test: wait find unverified blocks finish in BlockSyncFromOne and IBDProcess
  • Loading branch information
eval-exec authored Aug 16, 2024
2 parents 925e736 + 05d52c7 commit 75728e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/src/specs/sync/block_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ impl Spec for BlockSyncFromOne {

// NOTE: ENSURE node0 and nodes1 is in genesis state.
fn run(&self, nodes: &mut Vec<Node>) {
nodes
.iter()
.for_each(|node| node.wait_find_unverified_blocks_finished());
let node0 = &nodes[0];
let node1 = &nodes[1];
let (rpc_client0, rpc_client1) = (node0.rpc_client(), node1.rpc_client());
Expand Down
3 changes: 3 additions & 0 deletions test/src/specs/sync/ibd_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ impl Spec for IBDProcess {
crate::setup!(num_nodes: 3);

fn run(&self, nodes: &mut Vec<Node>) {
nodes
.iter()
.for_each(|node| node.wait_find_unverified_blocks_finished());
info!("Running IBD process");

let node0 = &nodes[0];
Expand Down

0 comments on commit 75728e6

Please sign in to comment.