summaryrefslogtreecommitdiffstats
path: root/tokio/tests/rt_common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/rt_common.rs')
-rw-r--r--tokio/tests/rt_common.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/tokio/tests/rt_common.rs b/tokio/tests/rt_common.rs
index 1273593f..a4091616 100644
--- a/tokio/tests/rt_common.rs
+++ b/tokio/tests/rt_common.rs
@@ -6,12 +6,11 @@
macro_rules! rt_test {
($($t:tt)*) => {
- mod basic_scheduler {
+ mod current_thread_scheduler {
$($t)*
fn rt() -> Arc<Runtime> {
- tokio::runtime::Builder::new()
- .basic_scheduler()
+ tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap()
@@ -23,9 +22,8 @@ macro_rules! rt_test {
$($t)*
fn rt() -> Arc<Runtime> {
- tokio::runtime::Builder::new()
- .threaded_scheduler()
- .core_threads(4)
+ tokio::runtime::Builder::new_multi_thread()
+ .worker_threads(4)
.enable_all()
.build()
.unwrap()
@@ -37,9 +35,8 @@ macro_rules! rt_test {
$($t)*
fn rt() -> Arc<Runtime> {
- tokio::runtime::Builder::new()
- .threaded_scheduler()
- .core_threads(1)
+ tokio::runtime::Builder::new_multi_thread()
+ .worker_threads(1)
.enable_all()
.build()
.unwrap()