Skip to content

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

test(storage): assert no-source outcome on later boot

Steven Enamakele73d86148b6f
diff --git a/crates/openhuman-core/src/storage/import/mod_tests.rs b/crates/openhuman-core/src/storage/import/mod_tests.rs
index e58f777af6..8527df4e69 100644
--- a/crates/openhuman-core/src/storage/import/mod_tests.rs
+++ b/crates/openhuman-core/src/storage/import/mod_tests.rs
@@ -428,7 +428,11 @@ async fn historical_profile_fixture_boots_into_typed_owner_records_without_resur
.iter()
.find(|report| report.domain == crate::storage::scope_move::IMPORT_DOMAIN)
.unwrap();
- assert_eq!(moved.outcome.as_ref().unwrap(), &Outcome::AlreadyDone);
+ assert_eq!(
+ moved.outcome.as_ref().unwrap(),
+ &Outcome::NoSource,
+ "a later boot must not replay the removed v1 database: {moved:?}"
+ );
let docs = Arc::clone(
backend
.for_scope(&Scope::local())