summaryrefslogtreecommitdiffstats
path: root/tests/timeout.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-09-10 19:58:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-09-10 19:58:35 -0700
commita4e947fba0c50d60fcd01e9d3f6a9cfe990e251d (patch)
tree95e6c9fc1c28316576862ac3619d0631d178f3d9 /tests/timeout.rs
parent7b94cf307d6562a8f31c5d764122e39cda080842 (diff)
Make timeout tests slightly more flexible
Diffstat (limited to 'tests/timeout.rs')
-rw-r--r--tests/timeout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/timeout.rs b/tests/timeout.rs
index 50cebf05..c1e22417 100644
--- a/tests/timeout.rs
+++ b/tests/timeout.rs
@@ -18,8 +18,8 @@ fn smoke() {
drop(env_logger::init());
let mut l = t!(Core::new());
let dur = Duration::from_millis(10);
- let timeout = t!(Timeout::new(dur, &l.handle()));
let start = Instant::now();
+ let timeout = t!(Timeout::new(dur, &l.handle()));
t!(l.run(timeout));
assert!(start.elapsed() >= (dur / 2));
}