Skip to content

Commit dd9fd6b

Browse files
committed
Increase probe locked_msat frequency in tests
1 parent ebb6227 commit dd9fd6b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/probing_tests.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async fn wait_until(timeout: Duration, predicate: impl Fn() -> bool) -> bool {
6969
if predicate() {
7070
return;
7171
}
72-
tokio::time::sleep(Duration::from_millis(100)).await;
72+
tokio::time::sleep(Duration::from_millis(1)).await;
7373
}
7474
})
7575
.await
@@ -298,9 +298,7 @@ async fn probe_budget_increments_and_decrements() {
298298
// Give gossip time to propagate to A.
299299
tokio::time::sleep(Duration::from_secs(3)).await;
300300

301-
let went_up =
302-
wait_until(Duration::from_secs(10), || node_a.prober().map_or(0, |p| p.locked_msat()) > 0)
303-
.await;
301+
let went_up = wait_until(Duration::from_secs(10), || node_a.prober().map_or(0, |p| p.locked_msat()) > 0) .await;
304302
assert!(went_up, "locked_msat never increased — no probe was dispatched");
305303
println!("First probe dispatched; locked_msat = {}", node_a.prober().unwrap().locked_msat());
306304

0 commit comments

Comments
 (0)