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
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
1 changed files with
1 additions and
2 deletions
-
daemon/tests/harness/flow.rs
|
@ -58,9 +58,8 @@ pub async fn next<T>(rx: &mut watch::Receiver<T>) -> T |
|
|
where |
|
|
where |
|
|
T: Clone, |
|
|
T: Clone, |
|
|
{ |
|
|
{ |
|
|
// TODO: Make timeout configurable, only contract setup can take up to 2 min on CI
|
|
|
|
|
|
rx.changed() |
|
|
rx.changed() |
|
|
.timeout(Duration::from_secs(120)) |
|
|
.timeout(Duration::from_secs(10)) |
|
|
.await |
|
|
.await |
|
|
.context("Waiting for next element in channel is taking too long, aborting") |
|
|
.context("Waiting for next element in channel is taking too long, aborting") |
|
|
.unwrap() |
|
|
.unwrap() |
|
|