From 70326e8f708a9ad761f676a881a40083bf27b207 Mon Sep 17 00:00:00 2001 From: Connor Tsui Date: Sat, 16 Nov 2024 12:24:33 -0500 Subject: [PATCH] reduce threads in downgrade test --- std/src/sync/rwlock/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/src/sync/rwlock/tests.rs b/std/src/sync/rwlock/tests.rs index 5413a062cef35..02ac1c85b9124 100644 --- a/std/src/sync/rwlock/tests.rs +++ b/std/src/sync/rwlock/tests.rs @@ -515,7 +515,7 @@ fn test_downgrade_observe() { // Taken from the test `test_rwlock_downgrade` from: // https://github.com/Amanieu/parking_lot/blob/master/src/rwlock.rs - const W: usize = if cfg!(target_pointer_width = "64") { 100 } else { 20 }; + const W: usize = 20; const N: usize = 100; // This test spawns `W` writer threads, where each will increment a counter `N` times, ensuring