summaryrefslogtreecommitdiffstats
path: root/tokio-test/src
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-test/src')
-rw-r--r--tokio-test/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs
index cfbf80ce..a20d0acd 100644
--- a/tokio-test/src/lib.rs
+++ b/tokio-test/src/lib.rs
@@ -28,8 +28,7 @@ pub mod task;
pub fn block_on<F: std::future::Future>(future: F) -> F::Output {
use tokio::runtime;
- let rt = runtime::Builder::new()
- .basic_scheduler()
+ let rt = runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap();