diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-09-10 19:58:35 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-10 19:58:35 -0700 |
commit | a4e947fba0c50d60fcd01e9d3f6a9cfe990e251d (patch) | |
tree | 95e6c9fc1c28316576862ac3619d0631d178f3d9 /tests/timeout.rs | |
parent | 7b94cf307d6562a8f31c5d764122e39cda080842 (diff) |
Make timeout tests slightly more flexible
Diffstat (limited to 'tests/timeout.rs')
-rw-r--r-- | tests/timeout.rs | 2 |
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)); } |