Skip to content

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

test(storage): log import failure before unwrapping in takeover test

Steven Enamakel2a78373241e5
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 07e550ca9b..a9919c2510 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp_tests.rs
@@ -586,7 +586,8 @@ async fn a_captured_import_claim_cannot_write_after_profile_lease_takeover() {
})
},
)
- .unwrap_or_else(|error| panic!("profile takeover import attempt failed: {error:#}"));
+ .inspect_err(|error| eprintln!("profile takeover import attempt failed: {error:#}"))
+ .unwrap();
assert_eq!(attempt, Some(()));
}