Skip to content

Commit ef6c72c

Browse files
author
Jakub Bukaj
committed
Make the Duration::span() test slightly less flakiness-prone
1 parent 82626b1 commit ef6c72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/time/duration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ mod tests {
558558
#[test]
559559
fn span() {
560560
use io::timer::sleep;
561-
let dur = Duration::span(|| sleep(Duration::milliseconds(5)));
561+
let dur = Duration::span(|| sleep(Duration::milliseconds(20)));
562562
assert!(dur > Duration::milliseconds(1));
563563
}
564564
}

0 commit comments

Comments
 (0)