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

Integration Test: wait find unverified blocks finish in BlockSyncFromOne and IBDProcess #4595

Merged
merged 1 commit into from
Aug 16, 2024
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
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
Loading