Skip to content

Commit babee77

Browse files
committed
use read lock to block out writer for greater code coverage
1 parent 87ecb35 commit babee77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ mod tests {
14081408
std::thread::scope(|s| {
14091409
s.spawn(|| {
14101410
Python::attach(|py| {
1411-
let b = rwlock.write_py_attached(py).unwrap();
1411+
let b = rwlock.read_py_attached(py).unwrap();
14121412
barrier.wait();
14131413
// sleep to ensure the other thread actually blocks
14141414
std::thread::sleep(std::time::Duration::from_millis(10));

0 commit comments

Comments
 (0)