2
0
Fork 1
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:
Yoshua Wuyts 2019-12-16 11:08:59 +01:00
parent 8ad1d23116
commit 60de8e1082
No known key found for this signature in database
GPG key ID: 24EA8164F96777ED

View file

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