diff --git a/src/lib.rs b/src/lib.rs index 85fc7e6..2fe88ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -953,8 +953,8 @@ 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) .open(dir.path().join("tmp-open-123")) .unwrap(); diff --git a/src/mmap_view_sync.rs b/src/mmap_view_sync.rs index b73bbd4..0e37e5f 100644 --- a/src/mmap_view_sync.rs +++ b/src/mmap_view_sync.rs @@ -235,8 +235,8 @@ mod test { let mut file = fs::OpenOptions::new() .read(true) - .write(true) .create(true) + .append(true) .open(path) .unwrap(); file.set_len(len).unwrap();