Skip to content

Commit 67ea013

Browse files
committed
fix uniffi tests probing initialization
1 parent 9acf20e commit 67ea013

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub(crate) fn setup_node(chain_source: &TestChainSource, config: TestConfig) ->
487487
}
488488

489489
if let Some(probing) = config.probing {
490-
builder.set_probing_config(probing);
490+
builder.set_probing_config(probing.into());
491491
}
492492

493493
let node = match config.store_type {

tests/probing_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,12 @@ async fn exhausted_probe_budget_blocks_new_probes() {
496496
node_b.connect(node_a.node_id(), node_a_addr, false).unwrap();
497497
node_b.connect(node_c.node_id(), node_c_addr, false).unwrap();
498498

499-
let cleared = tokio::time::timeout(Duration::from_secs(150), async {
499+
let cleared = tokio::time::timeout(Duration::from_secs(180), async {
500500
loop {
501501
if node_a.prober().map_or(1, |p| p.locked_msat()) == 0 {
502502
break;
503503
}
504-
tokio::time::sleep(Duration::from_millis(100)).await;
504+
tokio::time::sleep(Duration::from_millis(500)).await;
505505
}
506506
})
507507
.await
@@ -515,7 +515,7 @@ async fn exhausted_probe_budget_blocks_new_probes() {
515515
if node_a.prober().map_or(0, |p| p.locked_msat()) > 0 {
516516
break;
517517
}
518-
tokio::time::sleep(Duration::from_millis(100)).await;
518+
tokio::time::sleep(Duration::from_millis(500)).await;
519519
}
520520
})
521521
.await

0 commit comments

Comments
 (0)