Skip to content

Commit ebd7904

Browse files
committed
Cleanup a wait
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 2dced24 commit ebd7904

File tree

1 file changed

+6
-6
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5952,14 +5952,14 @@ fn continue_after_fast_block_no_sortition() {
59525952
let commits_before_1 = rl1_commits.load(Ordering::SeqCst);
59535953
let commits_before_2 = rl2_commits.load(Ordering::SeqCst);
59545954

5955-
signer_test
5956-
.running_nodes
5957-
.btc_regtest_controller
5958-
.build_next_block(1);
5955+
next_block_and(
5956+
&mut signer_test.running_nodes.btc_regtest_controller,
5957+
30,
5958+
|| Ok(get_burn_height() > burn_height_before),
5959+
)
5960+
.unwrap();
59595961
btc_blocks_mined += 1;
59605962

5961-
wait_for(30, || Ok(get_burn_height() > burn_height_before)).unwrap();
5962-
59635963
assert_eq!(rl1_commits.load(Ordering::SeqCst), commits_before_1);
59645964
assert_eq!(rl2_commits.load(Ordering::SeqCst), commits_before_2);
59655965
assert_eq!(

0 commit comments

Comments
 (0)