Skip to content

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

chore(storage): add local storage tests

Steven Enamakel198364c676de
diff --git a/crates/openhuman-core/src/storage/local_tests.rs b/crates/openhuman-core/src/storage/local_tests.rs
index 625a673203..0562162fdd 100644
--- a/crates/openhuman-core/src/storage/local_tests.rs
+++ b/crates/openhuman-core/src/storage/local_tests.rs
@@ -206,7 +206,9 @@ fn a_failed_standing_import_is_retried_on_the_next_call() {
}
};
- let error = open_standing(&path, "test::retry", &config, &import).unwrap_err();
+ let error = open_standing(&path, "test::retry", &config, &import)
+ .err()
+ .expect("the first import fails");
assert!(format!("{error:#}").contains("legacy file unreadable"));
open_standing(&path, "test::retry", &config, &import).unwrap();
assert_eq!(attempts.load(Ordering::SeqCst), 2);