Skip to content

Commit 02ac7d4

Browse files
committed
test: add a necessary wait condition to the continue_tenure_extend test
1 parent e1547e9 commit 02ac7d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7068,6 +7068,14 @@ fn continue_tenure_extend() {
70687068
)
70697069
.unwrap();
70707070

7071+
// wait for the extended miner to include the tx in a block
7072+
// before we produce the next bitcoin block (this test will assert
7073+
// that this is the case at the end of the test).
7074+
wait_for(60, || {
7075+
let nonce = get_account(&http_origin, &to_addr(&sender_sk)).nonce;
7076+
Ok(nonce > transfer_nonce)
7077+
}).unwrap();
7078+
70717079
let blocks_processed_before = coord_channel
70727080
.lock()
70737081
.expect("Mutex poisoned")

0 commit comments

Comments
 (0)