mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-23 19:12:37 +02:00
fix: migration test archive filter, governance email
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ maintainer becomes unavailable.
|
||||
## Maintainer
|
||||
|
||||
- **GitHub**: [forkless](https://github.com/forkless)
|
||||
- **Contact**: forkless@proton.me
|
||||
- **Contact**: forkless@protonmail.com
|
||||
- **GPG key**: [314BB48A3C72D8EC2830B8BED2B0DF63E2CBEA16](https://github.com/forkless.gpg)
|
||||
|
||||
## Bus Factor
|
||||
|
||||
+3
-3
@@ -488,14 +488,14 @@ mod tests {
|
||||
let count = migrate_backups_from(old_root.clone()).unwrap();
|
||||
assert_eq!(count, 1);
|
||||
|
||||
// Find the migrated archive
|
||||
// Find the migrated archive by matching the directory name
|
||||
let saves_dir = crate::config::backups_saves_dir();
|
||||
let archive: Option<PathBuf> = fs::read_dir(&saves_dir).unwrap()
|
||||
.flatten()
|
||||
.filter(|e| e.file_name().to_string_lossy().contains("migrated_"))
|
||||
.filter(|e| e.file_name().to_string_lossy().contains("migrated_notalterra_copy_2026-01-01"))
|
||||
.map(|e| e.path())
|
||||
.find(|_| true);
|
||||
assert!(archive.is_some(), "migrated archive should exist");
|
||||
assert!(archive.is_some(), "migrated archive should exist for 2026-01-01");
|
||||
|
||||
// Extract to a temp dir and verify content
|
||||
let extract_dir = tmp.path().join("extracted");
|
||||
|
||||
Reference in New Issue
Block a user