Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test
  • Loading branch information
Darksonn committed Apr 12, 2021
commit 09dc4ef453a9cab819983355a1d2e8f17448a300
2 changes: 1 addition & 1 deletion tokio/tests/sync_rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_with_max_reads(100, 1024);
let rwlock = RwLock::with_max_readers(100, 1024);
let mut reads = Vec::new();
loop {
let mut t = spawn(rwlock.read());
Expand Down