Close SQLite fixture before inspecting Windows journal files
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-15 13:56:58 +01:00
parent 0b1f582998
commit 7afb4ac66f
2 changed files with 14 additions and 1 deletions
@@ -690,6 +690,9 @@ mod tests {
.certificate_pem,
new.as_bytes()
);
// Windows SQLite holds byte-range locks in the live WAL/SHM files.
// Release the database before inspecting its remaining raw files.
drop(journal);
for entry in std::fs::read_dir(&directory).unwrap() {
let bytes = std::fs::read(entry.unwrap().path()).unwrap();
assert!(
@@ -698,7 +701,6 @@ mod tests {
.any(|s| s == b"PRIVATE KEY")
);
}
drop(journal);
std::fs::remove_dir_all(directory).unwrap();
}
}