Skip to content

Commit

Permalink
f Wait just a second and see if it's enough
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Feb 16, 2023
1 parent 367e037 commit 1058150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning-transaction-sync/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}
Expand All @@ -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
})
}
Expand All @@ -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")
}
};
Expand Down

0 comments on commit 1058150

Please sign in to comment.