diff options
Diffstat (limited to 'tokio-test/src')
-rw-r--r-- | tokio-test/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index e6e9019e..bdd4a9f9 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -27,7 +27,7 @@ pub mod task; pub fn block_on<F: std::future::Future>(future: F) -> F::Output { use tokio::runtime; - let mut rt = runtime::Builder::new().current_thread().build().unwrap(); + let mut rt = runtime::Builder::new().basic_scheduler().build().unwrap(); rt.block_on(future) } |