diff --git a/crates/electrum/tests/test_electrum.rs b/crates/electrum/tests/test_electrum.rs index befeeb4cc..07979866e 100644 --- a/crates/electrum/tests/test_electrum.rs +++ b/crates/electrum/tests/test_electrum.rs @@ -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!( diff --git a/crates/testenv/src/lib.rs b/crates/testenv/src/lib.rs index d569db12e..7572fbf4b 100644 --- a/crates/testenv/src/lib.rs +++ b/crates/testenv/src/lib.rs @@ -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 @@ -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`.