summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/runtime/tests')
-rw-r--r--tokio/src/runtime/tests/loom_blocking.rs5
-rw-r--r--tokio/src/runtime/tests/loom_pool.rs5
2 files changed, 4 insertions, 6 deletions
diff --git a/tokio/src/runtime/tests/loom_blocking.rs b/tokio/src/runtime/tests/loom_blocking.rs
index db7048e3..8f0b9014 100644
--- a/tokio/src/runtime/tests/loom_blocking.rs
+++ b/tokio/src/runtime/tests/loom_blocking.rs
@@ -23,9 +23,8 @@ fn blocking_shutdown() {
}
fn mk_runtime(num_threads: usize) -> Runtime {
- runtime::Builder::new()
- .threaded_scheduler()
- .core_threads(num_threads)
+ runtime::Builder::new_multi_thread()
+ .worker_threads(num_threads)
.build()
.unwrap()
}
diff --git a/tokio/src/runtime/tests/loom_pool.rs b/tokio/src/runtime/tests/loom_pool.rs
index 47ee1981..06ad6412 100644
--- a/tokio/src/runtime/tests/loom_pool.rs
+++ b/tokio/src/runtime/tests/loom_pool.rs
@@ -296,9 +296,8 @@ mod group_d {
}
fn mk_pool(num_threads: usize) -> Runtime {
- runtime::Builder::new()
- .threaded_scheduler()
- .core_threads(num_threads)
+ runtime::Builder::new_multi_thread()
+ .worker_threads(num_threads)
.build()
.unwrap()
}