From 946cb6462f3a16a7805f13c5ab9a6dce84b4b1c0 Mon Sep 17 00:00:00 2001 From: forkless Date: Wed, 3 Jun 2026 00:44:53 +0200 Subject: [PATCH] fix: migration test archive filter, governance email --- GOVERNANCE.md | 2 +- src/ops.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 4550a4f..50d2237 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -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 diff --git a/src/ops.rs b/src/ops.rs index 8ae20b0..c45af8b 100644 --- a/src/ops.rs +++ b/src/ops.rs @@ -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 = 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");