Skip to content

Commit

Permalink
Do not wait for an exact number of block rejections
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
  • Loading branch information
jferrant committed Sep 30, 2024
1 parent 28d06b7 commit 9c89e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testnet/stacks-node/src/tests/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
}
})
.collect::<Vec<_>>();
Ok(block_rejections.len() == expected_signers.len())
Ok(block_rejections.len() >= expected_signers.len())
})
}
}
Expand Down
1 change: 1 addition & 0 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4080,6 +4080,7 @@ fn locally_accepted_blocks_overriden_by_global_rejection() {
.lock()
.unwrap()
.replace(Vec::new());

wait_for(short_timeout_secs, || {
Ok(mined_blocks.load(Ordering::SeqCst) > blocks_before
&& signer_test
Expand Down

0 comments on commit 9c89e46

Please sign in to comment.