Skip to content

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

test(storage): expect null result for missing document route

Steven Enamakel148f327fcd8e
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 c5b8fd534c..7b4b572457 100644
--- a/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_invocation_tests.rs
@@ -112,12 +112,7 @@ async fn callback_documents_route_uses_the_captured_storage() {
)
.await;
- assert!(matches!(
- &result,
- Err(HostFailure::Storage(StorageFailure {
- kind: StorageKind::NotFound
- }))
- ), "expected a missing document in the captured backend, got {result:?}");
+ assert_eq!(result, Ok(Value::Null));
}
#[tokio::test]