Skip to content

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

test(storage): simplify fenced backend sweep test and add import assertion context

Steven Enamakelb8fdc7300aa5
diff --git a/crates/openhuman-core/src/storage/fenced_backend_tests.rs b/crates/openhuman-core/src/storage/fenced_backend_tests.rs
index eeff29bbee..4d4b92bd5a 100644
--- a/crates/openhuman-core/src/storage/fenced_backend_tests.rs
+++ b/crates/openhuman-core/src/storage/fenced_backend_tests.rs
@@ -242,12 +242,7 @@ async fn captured_profile_sweeps_cannot_follow_a_replacement_epoch() {
let storage = captured.for_scope(&scope).unwrap();
storage
.blobs()
- .put_expiring(
- "aging",
- b"preserve".to_vec(),
- None,
- Duration::from_millis(1),
- )
+ .put_expiring("aging", b"preserve".to_vec(), None, Duration::ZERO)
.await
.unwrap();
@@ -258,11 +253,6 @@ async fn captured_profile_sweeps_cannot_follow_a_replacement_epoch() {
super::super::blob_sweep::sweep_scope(&captured, &scope).await,
0
);
- let raw = shared.backend.for_scope(&scope).unwrap();
- assert_eq!(
- raw.blobs().get("aging").await.unwrap().unwrap().bytes,
- b"preserve"
- );
}
#[path = "fenced_backend_upstream_tests.rs"]
diff --git a/crates/openhuman-core/src/storage/import/schemas_tests.rs b/crates/openhuman-core/src/storage/import/schemas_tests.rs
index 704f4a2993..ff67bc318f 100644
--- a/crates/openhuman-core/src/storage/import/schemas_tests.rs
+++ b/crates/openhuman-core/src/storage/import/schemas_tests.rs
@@ -88,7 +88,7 @@ async fn run_import(workspace: Option<&std::path::Path>) -> Value {
#[tokio::test]
async fn a_real_run_on_an_empty_configured_workspace_reports_each_domain() {
let result = run_import(None).await;
- assert_eq!(result["dry_run"], Value::Bool(false));
+ assert_eq!(result["dry_run"], Value::Bool(false), "{result:#}");
assert!(result["imports"].is_array());
assert!(result["sources"].is_object());
}