Skip to content

Commit

Permalink
test: improve check in `reorg_locally_accepted_blocks_across_tenures_…
Browse files Browse the repository at this point in the history
…succeeds`
  • Loading branch information
obycode committed Nov 4, 2024
1 parent 7a5d079 commit 606cb5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4607,6 +4607,12 @@ fn reorg_locally_accepted_blocks_across_tenures_succeeds() {
// Clear the stackerdb chunks
test_observer::clear();

let blocks_before = mined_blocks.load(Ordering::SeqCst);
let info_before = signer_test
.stacks_client
.get_peer_info()
.expect("Failed to get peer info");

// submit a tx so that the miner will ATTEMPT to mine a stacks block N+1
let transfer_tx = make_stacks_transfer(
&sender_sk,
Expand All @@ -4619,11 +4625,6 @@ fn reorg_locally_accepted_blocks_across_tenures_succeeds() {
let tx = submit_tx(&http_origin, &transfer_tx);

info!("Submitted tx {tx} in to attempt to mine block N+1");
let blocks_before = mined_blocks.load(Ordering::SeqCst);
let info_before = signer_test
.stacks_client
.get_peer_info()
.expect("Failed to get peer info");
wait_for(short_timeout, || {
let ignored_signers = test_observer::get_stackerdb_chunks()
.into_iter()
Expand Down

0 comments on commit 606cb5a

Please sign in to comment.