Skip to content

Commit 3d2d547

Browse files
committed
fixup! Add end-to-end test for HRN resolution
1 parent f8ca774 commit 3d2d547

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/common/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ pub(crate) async fn generate_blocks_and_wait<E: ElectrumApi>(
520520
let address = bitcoind.new_address().expect("failed to get new address");
521521
// TODO: expect this Result once the WouldBlock issue is resolved upstream.
522522
let _block_hashes_res = bitcoind.generate_to_address(num, &address);
523+
// Give electrs a breath to index the 101 blocks before nodes sync
524+
tokio::time::sleep(std::time::Duration::from_millis(250)).await;
523525
wait_for_block(electrs, cur_height + num).await;
524526
print!(" Done!");
525527
println!("\n");

0 commit comments

Comments
 (0)