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 872b845..e12052b 100644
--- a/tests/sync_rwlock.rs
+++ b/tests/sync_rwlock.rs
@@ -54,7 +54,7 @@ fn read_exclusive_pending() {
// should be made available when one of the shared acesses is dropped
#[test]
fn exhaust_reading() {
- let rwlock = RwLock::new(100);
+ let rwlock = RwLock::with_max_readers(100, 1024);
let mut reads = Vec::new();
loop {
let mut t = spawn(rwlock.read());