Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test: release the recovery lock before inspecting its file

Richie McIlroyf79e08460203
diff --git a/crates/recording/src/recovery.rs b/crates/recording/src/recovery.rs
index 02e598f91..b40777558 100644
--- a/crates/recording/src/recovery.rs
+++ b/crates/recording/src/recovery.rs
@@ -4066,10 +4066,10 @@ mod transactional_recovery_tests {
child.0.kill().unwrap();
child.0.wait().unwrap();
let recovered = RecoveryLock::acquire(directory.path()).unwrap();
+ drop(recovered);
assert_eq!(
std::fs::read(directory.path().join(".recovery.lock")).unwrap(),
b""
);
- drop(recovered);
}
}