summaryrefslogtreecommitdiffstats
path: root/tokio/tests/io_driver.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/tests/io_driver.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/tests/io_driver.rs')
-rw-r--r--tokio/tests/io_driver.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/tests/io_driver.rs b/tokio/tests/io_driver.rs
index 01be3659..82fb1021 100644
--- a/tokio/tests/io_driver.rs
+++ b/tokio/tests/io_driver.rs
@@ -45,8 +45,7 @@ fn test_drop_on_notify() {
// shutting down. Then, when the task handle is dropped, the task itself is
// dropped.
- let rt = runtime::Builder::new()
- .basic_scheduler()
+ let rt = runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap();