Skip to content

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

test: simplify error handling in cron and import tests

Steven Enamakel6cf6c1696e6f
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
index 3872587c84..5cf4b4eee3 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
@@ -71,10 +71,7 @@ fn seed_thread(config: &Config, id: &str) {
working_dir: None,
},
)
- .unwrap_or_else(|e| {
- eprintln!("ERR {e:#}");
- panic!()
- });
+ .unwrap();
}
#[test]
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
index 04ac1e2e0a..f9096031b5 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
@@ -186,11 +186,7 @@ fn cron_jobs_and_runs_come_across_with_their_fields() {
let before = tree(dir.path());
let backend = backend();
- let outcome =
- import_cron(&backend, &Scope::local(), &config, dir.path(), "").unwrap_or_else(|e| {
- eprintln!("ERR {e:#}");
- panic!()
- });
+ let outcome = import_cron(&backend, &Scope::local(), &config, dir.path(), "").unwrap();
assert_eq!(written(outcome), 3 + 4);
let expected = expected()["cron"].clone();