Close SQLite fixture before inspecting Windows journal files
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user