Skip to content

Commit 1058150

Browse files
committed
f Wait just a second and see if it's enough
1 parent 367e037 commit 1058150

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-transaction-sync/tests/integration_tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn get_bitcoind() -> &'static BitcoinD {
3333
let mut conf = bitcoind::Conf::default();
3434
conf.network = "regtest";
3535
let bitcoind = BitcoinD::with_conf(bitcoind_exe, &conf).unwrap();
36-
std::thread::sleep(Duration::from_secs(3));
36+
std::thread::sleep(Duration::from_secs(1));
3737
bitcoind
3838
})
3939
}
@@ -49,7 +49,7 @@ fn get_electrsd() -> &'static ElectrsD {
4949
conf.http_enabled = true;
5050
conf.network = "regtest";
5151
let electrsd = ElectrsD::with_conf(electrs_exe, &bitcoind, &conf).unwrap();
52-
std::thread::sleep(Duration::from_secs(3));
52+
std::thread::sleep(Duration::from_secs(1));
5353
electrsd
5454
})
5555
}
@@ -71,7 +71,7 @@ fn wait_for_block(min_height: usize) {
7171
// While subscribing should succeed the first time around, we ran into some cases where
7272
// it didn't. Since we can't proceed without subscribing, we try again after a delay
7373
// and panic if it still fails.
74-
std::thread::sleep(Duration::from_secs(3));
74+
std::thread::sleep(Duration::from_secs(1));
7575
get_electrsd().client.block_headers_subscribe().expect("failed to subscribe to block headers")
7676
}
7777
};

0 commit comments

Comments
 (0)