Skip to content

Commit

Permalink
test: share lock even after failure
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jan 14, 2025
1 parent 9b3b1ad commit 99960a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ lazy_static! {
}

fn aquire_lock() -> MutexGuard<'static, ()> {
GLOBAL_LOCK.lock().unwrap()
GLOBAL_LOCK.lock().unwrap_or_else(|e| e.into_inner())
}

#[rstest]
Expand Down

0 comments on commit 99960a4

Please sign in to comment.