Skip to content

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

test(core): isolate boot sweep tests from persistent storage

Steven Enamakel72935dfb6a99
diff --git a/crates/openhuman-core/src/core/runtime/services_tests.rs b/crates/openhuman-core/src/core/runtime/services_tests.rs
index f5f2e9d834..a423ed18ad 100644
--- a/crates/openhuman-core/src/core/runtime/services_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/services_tests.rs
@@ -12,6 +12,7 @@ async fn flows_boot_reconcile_uses_the_runtime_captured_config() {
config_path: tmp.path().join("runtime-config.toml"),
..Config::default()
};
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
let core = crate::core::runtime::CoreContext::for_test_with_config(
crate::core::runtime::DomainSet::full(),
config,
@@ -52,7 +53,6 @@ async fn flows_boot_reconcile_uses_the_runtime_captured_config() {
.expect("captured runtime configuration loads");
assert_eq!(swept, 0);
let warning = String::from_utf8(capture.0.lock().unwrap().clone()).unwrap();
- eprintln!("captured flow reconciliation warning: {warning:?}");
assert!(
warning.contains(&blocker.display().to_string()),
"BootSweep must use the workspace captured by this runtime; got {warning:?}"
diff --git a/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs b/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs
index e0c2de8ec1..d30592122b 100644
--- a/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_builder_trail_off_tests.rs
@@ -415,6 +415,7 @@ async fn boot_sweep_logs_storage_open_failure_and_continues_boot() {
config_path: tmp.path().join("config.toml"),
..Config::default()
};
+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);
#[derive(Clone, Default)]
struct Capture(std::sync::Arc<std::sync::Mutex<Vec<u8>>>);
@@ -453,7 +454,6 @@ async fn boot_sweep_logs_storage_open_failure_and_continues_boot() {
assert_eq!(swept, 0);
let warning = String::from_utf8(capture.0.lock().unwrap().clone()).unwrap();
- eprintln!("captured boot sweep warning: {warning:?}");
assert!(
warning.contains("boot sweep failed"),
"the storage-open failure must be reported by the sweep, got {warning:?}"