Skip to content

Commit 80c5c6f

Browse files
committed
test: fix skip_mining_long_tx
Include the `empty_mempool_sleep_time` in the time that the test sleeps since it is likely that the miner will be waiting before mining the block.
1 parent de3f7c1 commit 80c5c6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9819,7 +9819,11 @@ fn skip_mining_long_tx() {
98199819

98209820
// Sleep for longer than the miner's attempt time, so that the miner will
98219821
// mark this tx as long-running and skip it in the next attempt
9822-
sleep_ms(naka_conf.miner.nakamoto_attempt_time_ms + 1000);
9822+
sleep_ms(
9823+
naka_conf.miner.nakamoto_attempt_time_ms
9824+
+ naka_conf.miner.empty_mempool_sleep_time.as_millis() as u64
9825+
+ 1000,
9826+
);
98239827

98249828
TEST_TX_STALL.set(false);
98259829

0 commit comments

Comments
 (0)