summaryrefslogtreecommitdiffstats
path: root/tokio/tests/sync_rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/sync_rwlock.rs')
-rw-r--r--tokio/tests/sync_rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/sync_rwlock.rs b/tokio/tests/sync_rwlock.rs
index 87010b65..76760351 100644
--- a/tokio/tests/sync_rwlock.rs
+++ b/tokio/tests/sync_rwlock.rs
@@ -166,7 +166,7 @@ async fn write_order() {
}
// A single RwLock is contested by tasks in multiple threads
-#[tokio::test(threaded_scheduler)]
+#[tokio::test(flavor = "multi_thread", worker_threads = 8)]
async fn multithreaded() {
let barrier = Arc::new(Barrier::new(5));
let rwlock = Arc::new(RwLock::<u32>::new(0));