Skip to content

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

test(storage): swap panic messages between import claim assertions

Steven Enamakel873c3cd29e82
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 5e8b32851c..045459077f 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
@@ -252,7 +252,7 @@ async fn an_unreadable_file_writes_no_marker_so_the_next_start_retries() {
&file,
b"this is not a sqlite database at all, just text padding",
)
- .unwrap_or_else(|error| panic!("captured import claim failed: {error:#}"));
+ .unwrap();
let rig = rig();
assert!(import(&rig, dir.path()).await.is_err());
let done = crate::storage::import_state::host_import_done(
@@ -371,7 +371,7 @@ async fn an_import_cannot_recapture_a_reopened_profiles_new_fence() {
&current_turn,
module_scope,
)
- .unwrap();
+ .unwrap_or_else(|error| panic!("captured import claim failed: {error:#}"));
// 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();