Skip to content

Commit

Permalink
Fix test_package_snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzhu70 committed Apr 4, 2023
1 parent d5f1d2e commit 673a094
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/snapshot_packager_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,17 +402,17 @@ mod tests {

// Create one fake snapshot.
let snapshot_file_name = format!("{slot}");
let snapshots_dir = snapshots_dir.join(&snapshot_file_name);
fs::create_dir_all(&snapshots_dir).unwrap();
let fake_snapshot_path = snapshots_dir.join(&snapshot_file_name);
let snapshot_dir = snapshots_dir.join(&snapshot_file_name);
fs::create_dir_all(&snapshot_dir).unwrap();
let fake_snapshot_path = snapshot_dir.join(&snapshot_file_name);
let mut fake_snapshot_file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.open(&fake_snapshot_path)
.unwrap();
fake_snapshot_file.write_all(b"Hello, world!").unwrap();
let fake_status_cache = snapshots_dir.join(SNAPSHOT_STATUS_CACHE_FILENAME);
let fake_status_cache = snapshot_dir.join(SNAPSHOT_STATUS_CACHE_FILENAME);
let mut fake_status_cache_file = OpenOptions::new()
.read(true)
.write(true)
Expand Down

0 comments on commit 673a094

Please sign in to comment.