Skip to content

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

test(storage): surface kv read errors in legacy import test

Steven Enamakel00cd7bbc3b77
diff --git a/crates/openhuman-core/src/storage/layout/legacy_tests.rs b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
index d1615be26f..764d5f4e63 100644
--- a/crates/openhuman-core/src/storage/layout/legacy_tests.rs
+++ b/crates/openhuman-core/src/storage/layout/legacy_tests.rs
@@ -15,8 +15,7 @@ async fn the_import_brings_legacy_files_into_the_v1_database() {
let scoped = backend.for_scope(&storage::Scope::local())?;
Ok(StateKv::over(&scoped, "memory", "state")
.get::<serde_json::Value>("jobs")
- .ok()
- .flatten())
+ .unwrap_or_else(|e| panic!("kv get: {e:#}")))
})
.unwrap();
assert_eq!(jobs, Some(serde_json::json!({"jobs": [1, 2, 3]})));