Skip to content

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

test(import): surface error details when cron import fails

Steven Enamakel1fdbef6b13f5
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
index f9096031b5..7cc1ebd10e 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
@@ -186,7 +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();
+ let outcome = import_cron(&backend, &Scope::local(), &config, dir.path(), "").unwrap_or_else(|e| panic!("ERR {e:#}"));
assert_eq!(written(outcome), 3 + 4);
let expected = expected()["cron"].clone();