mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
up time limits
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
8ad1d23116
commit
60de8e1082
1 changed files with 3 additions and 3 deletions
|
@ -587,13 +587,13 @@ extension_trait! {
|
||||||
|
|
||||||
assert_eq!(s.next().await, Some(1));
|
assert_eq!(s.next().await, Some(1));
|
||||||
// There will be no delay after the first time.
|
// There will be no delay after the first time.
|
||||||
assert!(start.elapsed().as_millis() <= 210);
|
assert!(start.elapsed().as_millis() < 400);
|
||||||
|
|
||||||
assert_eq!(s.next().await, Some(2));
|
assert_eq!(s.next().await, Some(2));
|
||||||
assert!(start.elapsed().as_millis() <= 210);
|
assert!(start.elapsed().as_millis() < 400);
|
||||||
|
|
||||||
assert_eq!(s.next().await, None);
|
assert_eq!(s.next().await, None);
|
||||||
assert!(start.elapsed().as_millis() <= 210);
|
assert!(start.elapsed().as_millis() < 400);
|
||||||
#
|
#
|
||||||
# }) }
|
# }) }
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue