Changing test condition

This commit is contained in:
Miguel Pérez García 2019-12-18 07:18:57 -06:00
parent eedf1d3367
commit ef021dcb2b

View file

@ -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())
#
# });
```