Skip to content

Commit 83b8b9a

Browse files
committed
Assert in test that open-3 does not exists, ensure test correctness
1 parent 77c0217 commit 83b8b9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test_segment_recovery.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ fn test_handling_missing_empty_segment() {
5050
}
5151

5252
// Remove the last segment file (which is empty)
53+
assert!(
54+
!dir.path().join("open-3").exists(),
55+
"open-3 should not exist",
56+
);
5357
let last_segment_file = dir.path().join("open-2");
5458
std::fs::remove_file(last_segment_file).unwrap();
5559

0 commit comments

Comments
 (0)