Skip to content

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

test(storage): align import claim assertions with their scenarios

Steven Enamakel95903419dd61
diff --git a/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs b/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
index 045459077f..f8b2be53f8 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
@@ -371,7 +371,7 @@ async fn an_import_cannot_recapture_a_reopened_profiles_new_fence() {
&current_turn,
module_scope,
)
- .unwrap_or_else(|error| panic!("captured import claim failed: {error:#}"));
+ .unwrap();
// The capture retains the profile object as long as its claim/payload
// closure owns it. Its backend is the exact context's fence wrapper.
let _scoped = captured.backend.for_scope(&captured.scope).unwrap();
@@ -506,6 +506,6 @@ async fn a_captured_import_claim_cannot_write_after_profile_lease_takeover() {
})
},
)
- .unwrap();
+ .unwrap_or_else(|error| panic!("captured import claim failed: {error:#}"));
assert_eq!(attempt, Some(()));
}