Skip to content

Commit

Permalink
chore: improve timeout wording
Browse files Browse the repository at this point in the history
  • Loading branch information
duesee authored and jakoschiko committed May 6, 2024
1 parent 1b2944f commit 77025c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow-test/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ impl Runtime {
match self.timeout {
None => self.rt.block_on(future),
Some(timeout) => self.rt.block_on(async {
tokio::select! {
select! {
output = future => output,
() = sleep(timeout) => panic!("Timeout reached"),
() = sleep(timeout) => panic!("exceeded {timeout:?} timeout"),
}
}),
}
Expand Down

0 comments on commit 77025c2

Please sign in to comment.