Skip to content

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

test(storage): assert on borrowed result and add failure message

Steven Enamakel05184f69d6fa
diff --git a/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs b/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs
index 4129a99c52..7cf24397a7 100644
--- a/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs
@@ -108,11 +108,11 @@ async fn callback_documents_route_uses_the_captured_storage() {
.await;
assert!(matches!(
- result,
+ &result,
Err(HostFailure::Storage(StorageFailure {
kind: StorageKind::NotFound
}))
- ));
+ ), "expected a missing document in the captured backend, got {result:?}");
}
#[tokio::test]