Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crodas committed Feb 29, 2024
1 parent 491cb32 commit 1a40603
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions forc-util/src/fs_locking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ mod test {
#[test]
fn test_fs_locking_same_process() {
let x = PidFileLocking::lsp("test");
assert!(!x.is_locked()); // checks the non-existance of the lock (therefore it is not locked)
assert!(x.lock().is_ok());
// The current process is locking "test"
let x = PidFileLocking::lsp("test");
Expand Down

0 comments on commit 1a40603

Please sign in to comment.