From 7bdc93c636f2fb8e224db95f900cd2b77bdd2ba4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 16 Nov 2021 17:52:13 +1100 Subject: [PATCH] Reduce timeout to 10 seconds With the reduced number of payout curve entries, our tests are always fast. --- daemon/tests/harness/flow.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/tests/harness/flow.rs b/daemon/tests/harness/flow.rs index e7165e0..6478e41 100644 --- a/daemon/tests/harness/flow.rs +++ b/daemon/tests/harness/flow.rs @@ -58,9 +58,8 @@ pub async fn next(rx: &mut watch::Receiver) -> T where T: Clone, { - // TODO: Make timeout configurable, only contract setup can take up to 2 min on CI rx.changed() - .timeout(Duration::from_secs(120)) + .timeout(Duration::from_secs(10)) .await .context("Waiting for next element in channel is taking too long, aborting") .unwrap()