use in-memory fs to speed tests up
This commit is contained in:
parent
d363227643
commit
1c231e0fd1
1 changed files with 1 additions and 3 deletions
|
@ -28,9 +28,7 @@ mod must {
|
||||||
assert_eq!(finished_backup_runs.len(), parallel_backups_number);
|
assert_eq!(finished_backup_runs.len(), parallel_backups_number);
|
||||||
assert!(data_weight(&repository_path)? > 0);
|
assert!(data_weight(&repository_path)? > 0);
|
||||||
|
|
||||||
let target_directory = tempfile::tempdir()?.into_path();
|
let target_path: VfsPath = random_in_memory_path("target")?;
|
||||||
let target_path: VfsPath = PhysicalFS::new(target_directory).into();
|
|
||||||
let target_path = target_path.join(&format!("target-{}", getpid()))?;
|
|
||||||
let all_restored_files = restore_all(&repository_path, &target_path)?;
|
let all_restored_files = restore_all(&repository_path, &target_path)?;
|
||||||
assert_eq!(all_restored_files.len(), total_number_of_files);
|
assert_eq!(all_restored_files.len(), total_number_of_files);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue