Skip to content

Commit

Permalink
reduce threads in downgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Nov 16, 2024
1 parent d58e4f2 commit 70326e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/sync/rwlock/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70326e8

Please sign in to comment.