aboutsummaryrefslogtreecommitdiff
path: root/tests/sync_rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sync_rwlock.rs')
-rw-r--r--tests/sync_rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sync_rwlock.rs b/tests/sync_rwlock.rs
index 87010b6..7676035 100644
--- a/tests/sync_rwlock.rs
+++ b/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));