diff --git a/src/storage/benches/bench_fs_operation.rs b/src/storage/benches/bench_fs_operation.rs index 0983883fdaa4..8d0b20987686 100644 --- a/src/storage/benches/bench_fs_operation.rs +++ b/src/storage/benches/bench_fs_operation.rs @@ -217,6 +217,7 @@ fn gen_std_files(path: &Path) -> impl IntoIterator { .read(true) .write(true) .create(true) + .truncate(true) .open(file_path) .unwrap(); ret