summaryrefslogtreecommitdiffstats
path: root/tokio/tests/clock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/clock.rs')
-rw-r--r--tokio/tests/clock.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tokio/tests/clock.rs b/tokio/tests/clock.rs
index 29035bfb..a9c2e3d2 100644
--- a/tokio/tests/clock.rs
+++ b/tokio/tests/clock.rs
@@ -20,7 +20,11 @@ fn clock_and_timer_concurrent() {
let when = Instant::now() + Duration::from_millis(5_000);
let clock = Clock::new_with_now(MockNow(when));
- let mut rt = runtime::Builder::new().clock(clock).build().unwrap();
+ let mut rt = runtime::Builder::new()
+ .thread_pool()
+ .clock(clock)
+ .build()
+ .unwrap();
let (tx, rx) = mpsc::channel();