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 context between two import tests

Steven Enamakel93c68459b2c6
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 58ffdf0df2..07e550ca9b 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!("profile takeover import attempt failed: {error:#}"));
+ .unwrap();
let rig = rig();
assert!(import(&rig, dir.path()).await.is_err());
let done = crate::storage::import_state::host_import_done(
@@ -586,7 +586,7 @@ async fn a_captured_import_claim_cannot_write_after_profile_lease_takeover() {
})
},
)
- .unwrap();
+ .unwrap_or_else(|error| panic!("profile takeover import attempt failed: {error:#}"));
assert_eq!(attempt, Some(()));
}