From 1a40603f4dccd25f11e25ea175d4669ccc571e49 Mon Sep 17 00:00:00 2001 From: Cesar Rodas Date: Thu, 29 Feb 2024 20:30:45 -0300 Subject: [PATCH] Add more tests --- forc-util/src/fs_locking.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/forc-util/src/fs_locking.rs b/forc-util/src/fs_locking.rs index 32227560bd1..4a3b369d74b 100644 --- a/forc-util/src/fs_locking.rs +++ b/forc-util/src/fs_locking.rs @@ -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");