From 1058150ba7bb75586e6b5715eafe844e3103ff97 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 15 Feb 2023 18:58:53 -0600 Subject: [PATCH] f Wait just a second and see if it's enough --- lightning-transaction-sync/tests/integration_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning-transaction-sync/tests/integration_tests.rs b/lightning-transaction-sync/tests/integration_tests.rs index 17bf144d53d..276aeabf9e0 100644 --- a/lightning-transaction-sync/tests/integration_tests.rs +++ b/lightning-transaction-sync/tests/integration_tests.rs @@ -33,7 +33,7 @@ fn get_bitcoind() -> &'static BitcoinD { let mut conf = bitcoind::Conf::default(); conf.network = "regtest"; let bitcoind = BitcoinD::with_conf(bitcoind_exe, &conf).unwrap(); - std::thread::sleep(Duration::from_secs(3)); + std::thread::sleep(Duration::from_secs(1)); bitcoind }) } @@ -49,7 +49,7 @@ fn get_electrsd() -> &'static ElectrsD { conf.http_enabled = true; conf.network = "regtest"; let electrsd = ElectrsD::with_conf(electrs_exe, &bitcoind, &conf).unwrap(); - std::thread::sleep(Duration::from_secs(3)); + std::thread::sleep(Duration::from_secs(1)); electrsd }) } @@ -71,7 +71,7 @@ fn wait_for_block(min_height: usize) { // While subscribing should succeed the first time around, we ran into some cases where // it didn't. Since we can't proceed without subscribing, we try again after a delay // and panic if it still fails. - std::thread::sleep(Duration::from_secs(3)); + std::thread::sleep(Duration::from_secs(1)); get_electrsd().client.block_headers_subscribe().expect("failed to subscribe to block headers") } };