diff --git a/src/lib.rs b/src/lib.rs index 2fe88ee..16bc89f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -953,8 +953,10 @@ mod test { // Create fake temp file to simulate a crash. let mut file = std::fs::OpenOptions::new() .read(true) + .write(true) .create(true) - .append(true) + .append(false) + .truncate(false) .open(dir.path().join("tmp-open-123")) .unwrap();