Skip to content

Commit cc59764

Browse files
committed
Remove explicit number of workers from probing tests
1 parent 5f6c6c8 commit cc59764

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/probing_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use std::time::Duration;
4343

4444
const PROBE_AMOUNT_MSAT: u64 = 1_000_000;
4545
const MAX_LOCKED_MSAT: u64 = 100_000_000;
46-
const PROBING_INTERVAL_MILLISECONDS: u64 = 500;
46+
const PROBING_INTERVAL_MILLISECONDS: u64 = 2000;
4747
const PROBING_DIVERSITY_PENALTY: u64 = 50_000;
4848

4949
/// FixedDestStrategy — always targets one node; used by budget tests.
@@ -242,7 +242,7 @@ fn print_probing_perfomance(observers: &[&TestNode], all_nodes: &[&TestNode]) {
242242

243243
/// Verifies that `locked_msat` increases when a probe is dispatched and returns
244244
/// to zero once the probe resolves (succeeds or fails).
245-
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
245+
#[tokio::test(flavor = "multi_thread")]
246246
async fn probe_budget_increments_and_decrements() {
247247
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
248248
let chain_source = TestChainSource::Electrum(&electrsd);
@@ -327,7 +327,7 @@ async fn probe_budget_increments_and_decrements() {
327327
/// Exhaustion is triggered by stopping the intermediate node (B) while a probe HTLC
328328
/// is in-flight, preventing resolution and keeping the budget locked. After B restarts
329329
/// the HTLC fails, the budget clears, and probing resumes.
330-
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
330+
#[tokio::test(flavor = "multi_thread")]
331331
async fn exhausted_probe_budget_blocks_new_probes() {
332332
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
333333
let chain_source = TestChainSource::Electrum(&electrsd);

0 commit comments

Comments
 (0)