Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 70326e8

Browse files
committedNov 16, 2024
reduce threads in downgrade test
1 parent d58e4f2 commit 70326e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎std/src/sync/rwlock/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ fn test_downgrade_observe() {
515515
// Taken from the test `test_rwlock_downgrade` from:
516516
// https://github.com/Amanieu/parking_lot/blob/master/src/rwlock.rs
517517

518-
const W: usize = if cfg!(target_pointer_width = "64") { 100 } else { 20 };
518+
const W: usize = 20;
519519
const N: usize = 100;
520520

521521
// This test spawns `W` writer threads, where each will increment a counter `N` times, ensuring

0 commit comments

Comments
 (0)
Failed to load comments.