diff --git a/crates/ln-dlc-node/src/tests/just_in_time_channel/channel_close.rs b/crates/ln-dlc-node/src/tests/just_in_time_channel/channel_close.rs index 42724ad8d..832f8bbcf 100644 --- a/crates/ln-dlc-node/src/tests/just_in_time_channel/channel_close.rs +++ b/crates/ln-dlc-node/src/tests/just_in_time_channel/channel_close.rs @@ -55,7 +55,7 @@ async fn ln_collab_close() { .unwrap(); while !payee.list_channels().is_empty() { - tokio::time::sleep(Duration::from_millis(500)).await; + tokio::time::sleep(Duration::from_millis(100)).await; } // Give some time for the close transaction to be broadcast before trying to include it in a diff --git a/crates/ln-dlc-node/src/tests/load.rs b/crates/ln-dlc-node/src/tests/load.rs index 786e352f1..3bed21f55 100644 --- a/crates/ln-dlc-node/src/tests/load.rs +++ b/crates/ln-dlc-node/src/tests/load.rs @@ -89,7 +89,7 @@ async fn open_position(coordinator: &Coordinator, app: &Node) -> } } - tokio::time::sleep(Duration::from_millis(500)).await; + tokio::time::sleep(Duration::from_millis(100)).await; } }) .await @@ -134,7 +134,7 @@ async fn close_position(coordinator: &Coordinator, app: &Node) -> } } - tokio::time::sleep(Duration::from_millis(500)).await; + tokio::time::sleep(Duration::from_millis(100)).await; } }) .await diff --git a/crates/ln-dlc-node/src/tests/load/coordinator.rs b/crates/ln-dlc-node/src/tests/load/coordinator.rs index 482e0beee..c2a4979a3 100644 --- a/crates/ln-dlc-node/src/tests/load/coordinator.rs +++ b/crates/ln-dlc-node/src/tests/load/coordinator.rs @@ -104,7 +104,7 @@ impl Coordinator { } tracing::debug!("Waiting for channel to be usable"); - tokio::time::sleep(Duration::from_millis(500)).await; + tokio::time::sleep(Duration::from_millis(100)).await; } anyhow::Ok(()) diff --git a/crates/ln-dlc-node/src/tests/mod.rs b/crates/ln-dlc-node/src/tests/mod.rs index 6fab0a58b..1955c27d9 100644 --- a/crates/ln-dlc-node/src/tests/mod.rs +++ b/crates/ln-dlc-node/src/tests/mod.rs @@ -320,7 +320,7 @@ impl Node { temp_channel_id = %hex::encode(temp_channel_id), "Waiting for channel to be usable" ); - tokio::time::sleep(Duration::from_millis(500)).await; + tokio::time::sleep(Duration::from_millis(100)).await; } }) .await?; @@ -478,7 +478,7 @@ where loop { match predicate_fn().await? { Some(value) => return Ok(value), - None => tokio::time::sleep(Duration::from_millis(500)).await, + None => tokio::time::sleep(Duration::from_millis(100)).await, }; } })