summaryrefslogtreecommitdiffstats
path: root/tokio-util/tests/context.rs
diff options
context:
space:
mode:
authorLucio Franco <luciofranco14@gmail.com>2020-10-12 13:44:54 -0400
committerGitHub <noreply@github.com>2020-10-12 13:44:54 -0400
commit8880222036f37c6204c8466f25e828447f16dacb (patch)
treefd623afc20f73bbce65746a3d1b1b2731ecf30a5 /tokio-util/tests/context.rs
parent0893841f31542b2b04c5050a8a4a3c45cf867e55 (diff)
rt: Remove `threaded_scheduler()` and `basic_scheduler()` (#2876)
Co-authored-by: Alice Ryhl <alice@ryhl.io> Co-authored-by: Carl Lerche <me@carllerche.com>
Diffstat (limited to 'tokio-util/tests/context.rs')
-rw-r--r--tokio-util/tests/context.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tokio-util/tests/context.rs b/tokio-util/tests/context.rs
index ee519130..852dcd0b 100644
--- a/tokio-util/tests/context.rs
+++ b/tokio-util/tests/context.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "rt-core")]
#![warn(rust_2018_idioms)]
use tokio::runtime::Builder;
@@ -6,15 +7,13 @@ use tokio_util::context::RuntimeExt;
#[test]
fn tokio_context_with_another_runtime() {
- let rt1 = Builder::new()
- .threaded_scheduler()
- .core_threads(1)
+ let rt1 = Builder::new_multi_thread()
+ .worker_threads(1)
// no timer!
.build()
.unwrap();
- let rt2 = Builder::new()
- .threaded_scheduler()
- .core_threads(1)
+ let rt2 = Builder::new_multi_thread()
+ .worker_threads(1)
.enable_all()
.build()
.unwrap();