Skip to content

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

test(cron): adapt store test to fallible collections call

Steven Enamakelb1cbae9f89fb
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index 1aabd5f484..2c293689e1 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -268,7 +268,8 @@ fn assert_force_next_run_updates_collection(
let before_docs = std::sync::Arc::clone(&docs);
let collections_before =
- crate::storage::block_on_anyhow(async move { before_docs.collections("").await }).unwrap();
+ crate::storage::block_on_anyhow(async move { Ok(before_docs.collections("").await?) })
+ .unwrap();
assert!(collections_before.contains(&collection.to_string()));
let next = chrono::DateTime::<Utc>::from_timestamp_millis(456).unwrap();