summaryrefslogtreecommitdiffstats
path: root/tokio/tests/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/timer.rs')
-rw-r--r--tokio/tests/timer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/tests/timer.rs b/tokio/tests/timer.rs
index 297a312e..63994d18 100644
--- a/tokio/tests/timer.rs
+++ b/tokio/tests/timer.rs
@@ -25,8 +25,7 @@ fn timer_with_threaded_runtime() {
tx.send(()).unwrap();
});
- let mut e = tokio_executor::enter().unwrap();
- e.block_on(rt.shutdown_on_idle());
+ rt.shutdown_on_idle();
rx.recv().unwrap();
}