aboutsummaryrefslogtreecommitdiff
path: root/tests/sharded_lock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sharded_lock.rs')
-rw-r--r--tests/sharded_lock.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/sharded_lock.rs b/tests/sharded_lock.rs
index 73bd489..c362154 100644
--- a/tests/sharded_lock.rs
+++ b/tests/sharded_lock.rs
@@ -176,11 +176,8 @@ fn try_write() {
let write_result = lock.try_write();
match write_result {
Err(TryLockError::WouldBlock) => (),
- Ok(_) => assert!(
- false,
- "try_write should not succeed while read_guard is in scope"
- ),
- Err(_) => assert!(false, "unexpected error"),
+ Ok(_) => panic!("try_write should not succeed while read_guard is in scope"),
+ Err(_) => panic!("unexpected error"),
}
drop(read_guard);