Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(storage): allow scope_move to report no source on upgrade

Steven Enamakeldbd08cbb2b10
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index d67d4150d0..92652e5a7e 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -460,6 +460,7 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched() {
assert!(*found > 0, "{} found nothing", report.domain);
assert_eq!(found, written, "{} lost records", report.domain);
}
+ Outcome::NoSource if report.domain == "scope_move" => {}
other => panic!("{}: expected an import, got {other:?}", report.domain),
}
}
@@ -557,9 +558,14 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched() {
.await;
assert_eq!(again.len(), reports.len());
for report in &again {
+ let expected = if report.domain == "scope_move" {
+ Outcome::NoSource
+ } else {
+ Outcome::AlreadyDone
+ };
assert_eq!(
report.outcome.as_ref().unwrap(),
- &Outcome::AlreadyDone,
+ &expected,
"{} imported twice",
report.domain
);