Skip to content

Commit ea902a8

Browse files
committed
f Typos, just sleep 3 secs
1 parent 767c564 commit ea902a8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/integration_tests_rust.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,14 +1973,13 @@ async fn lsps2_client_trusts_lsp() {
19731973
expect_channel_pending_event!(client_node, service_node.node_id());
19741974
expect_channel_ready_event!(client_node, service_node.node_id());
19751975

1976-
// Check the fundign transaction hasn't broadcasted yet and nodes aren't seeing it.
1976+
// Check the funding transaction hasn't been broadcasted yet and nodes aren't seeing it.
19771977
println!("Try to find funding tx... It won't be found yet, as the client has not claimed it.");
1978-
for _ in 0..30 {
1979-
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
1980-
let mempool = bitcoind.client.get_raw_mempool().unwrap().into_model().unwrap();
1981-
let funding_tx_found = mempool.0.iter().any(|txid| *txid == funding_txo.txid);
1982-
assert!(!funding_tx_found, "Funding transaction should NOT be broadcast yet");
1983-
}
1978+
tokio::time::sleep(std::time::Duration::from_secs(3)).await;
1979+
let mempool = bitcoind.client.get_raw_mempool().unwrap().into_model().unwrap();
1980+
let funding_tx_found = mempool.0.iter().any(|txid| *txid == funding_txo.txid);
1981+
assert!(!funding_tx_found, "Funding transaction should NOT be broadcast yet");
1982+
19841983
service_node.sync_wallets().unwrap();
19851984
client_node.sync_wallets().unwrap();
19861985
assert_eq!(
@@ -2002,7 +2001,7 @@ async fn lsps2_client_trusts_lsp() {
20022001
Some(0)
20032002
);
20042003

2005-
// No claim the JIT payment, which should release the funding transaction
2004+
// Now claim the JIT payment, which should release the funding transaction
20062005
let service_fee_msat = (jit_amount_msat * channel_opening_fee_ppm as u64) / 1_000_000;
20072006
let expected_received_amount_msat = jit_amount_msat - service_fee_msat;
20082007

0 commit comments

Comments
 (0)