Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/electrum/tests/test_electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub fn chained_mempool_tx_sync() -> anyhow::Result<()> {
.transaction()?;
let txid2 = rpc_client.send_raw_transaction(signed_tx.raw_hex())?;

env.wait_until_electrum_sees_txid(signed_tx.compute_txid(), Duration::from_secs(5))?;
env.wait_until_electrum_sees_txid(signed_tx.compute_txid(), Duration::from_secs(6))?;

let spk_history = electrum_client.script_get_history(&tracked_addr.script_pubkey())?;
assert!(
Expand Down
14 changes: 8 additions & 6 deletions crates/testenv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ impl TestEnv {
std::thread::sleep(delay);
}

Err(anyhow::Error::msg(
"Timed out waiting for Electrsd to get block header",
))
Err(anyhow::Error::msg(format!(
"Timed out waiting for Electrsd to get transaction, took: {:?}",
start.elapsed()
)))
}

/// This method waits for Electrsd to see a transaction with given `txid`. `timeout` is the
Expand All @@ -229,9 +230,10 @@ impl TestEnv {
std::thread::sleep(delay);
}

Err(anyhow::Error::msg(
"Timed out waiting for Electrsd to get transaction",
))
Err(anyhow::Error::msg(format!(
"Timed out waiting for Electrsd to get transaction, took: {:?}",
start.elapsed()
)))
}

/// Invalidate a number of blocks of a given size `count`.
Expand Down
Loading