fix: migration test archive filter, governance email

This commit is contained in:
2026-06-03 00:47:57 +02:00
parent 4f88032ad7
commit 946cb6462f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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");