Skip to content

Commit

Permalink
Changing test condition
Browse files Browse the repository at this point in the history
  • Loading branch information
miker1423 committed Dec 18, 2019
1 parent eedf1d3 commit ef021dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/future/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,10 @@ extension_trait! {
let res = fut.timeout(dur).await;
assert!(res.is_ok());
let fut = future::ready(0);
let fut = future::pending::<()>();
let dur = Duration::from_millis(100);
let res = fut.timeout(dur).await;
assert!(res.is_ok())
assert!(res.is_err())
#
# });
```
Expand Down

0 comments on commit ef021dc

Please sign in to comment.