Skip to content

Commit 9c89e46

Browse files
committed
Do not wait for an exact number of block rejections
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 28d06b7 commit 9c89e46

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

testnet/stacks-node/src/tests/signer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
744744
}
745745
})
746746
.collect::<Vec<_>>();
747-
Ok(block_rejections.len() == expected_signers.len())
747+
Ok(block_rejections.len() >= expected_signers.len())
748748
})
749749
}
750750
}

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4080,6 +4080,7 @@ fn locally_accepted_blocks_overriden_by_global_rejection() {
40804080
.lock()
40814081
.unwrap()
40824082
.replace(Vec::new());
4083+
40834084
wait_for(short_timeout_secs, || {
40844085
Ok(mined_blocks.load(Ordering::SeqCst) > blocks_before
40854086
&& signer_test

0 commit comments

Comments
 (0)