Browse Source

Reduce timeout to 10 seconds

With the reduced number of payout curve entries, our tests are
always fast.
new-http-api
Thomas Eizinger 3 years ago
parent
commit
7bdc93c636
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 3
      daemon/tests/harness/flow.rs

3
daemon/tests/harness/flow.rs

@ -58,9 +58,8 @@ pub async fn next<T>(rx: &mut watch::Receiver<T>) -> 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()

Loading…
Cancel
Save