reduce threads in downgrade test

This commit is contained in:
Connor Tsui 2024-11-16 12:24:33 -05:00
parent 782b07e1ff
commit fc52cdd9a8

View File

@ -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