Skip to content

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

test(core): isolate test storage and tracing setup

Steven Enamakel3468745ff634
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index 023851a6e9..6fc75058f3 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -200,6 +200,7 @@ async fn archetype_delegation_defaults_to_async_with_durable_session_e2e() {
// for background delivery as a new chat turn.
let _ = AgentDefinitionRegistry::init_global_builtins();
let workspace = tempfile::TempDir::new().expect("workspace");
+ crate::storage::local::use_persistent_default_for_test(workspace.path());
let provider = Arc::new(ScriptedModel::new(vec![(
ARCHETYPE_DELEGATION_CANARY,
"async-delegation-child-answer",
diff --git a/crates/openhuman-core/src/core/runtime/services_tests.rs b/crates/openhuman-core/src/core/runtime/services_tests.rs
index 777b00a732..fc3412389f 100644
--- a/crates/openhuman-core/src/core/runtime/services_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/services_tests.rs
@@ -45,7 +45,7 @@ async fn flows_boot_reconcile_uses_the_runtime_captured_config() {
.with_writer(capture.clone())
.with_ansi(false)
.finish();
- let _subscriber_guard = tracing::subscriber::set_default(subscriber);
+ tracing::subscriber::set_global_default(subscriber).expect("install test tracing subscriber");
let swept = reconcile_flows_on_boot(&dispatch)
.await