Skip to content

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

test(cron): use persistent storage in cron store tests

Steven Enamakela782ad9386d9
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index 2eaf9db8fe..27c85acc1e 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -24,6 +24,7 @@ fn test_config(tmp: &TempDir) -> Config {
..Config::default()
};
std::fs::create_dir_all(&config.workspace_dir).unwrap();
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
config
}
@@ -38,6 +39,7 @@ fn remove_job_does_not_write_to_stdout() {
action_dir: std::env::temp_dir(),
..Config::default()
};
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
println!("BEGIN_CRON_REMOVE_CAPTURE");
use std::io::Write;
std::io::stdout().flush().unwrap();