forked from mirror/async-std
Changing test condition
This commit is contained in:
parent
eedf1d3367
commit
ef021dcb2b
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
#
|
||||
# });
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue