Skip to content

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

test(agent): isolate nudge tests with a persistent storage dir

Steven Enamakelc74881cebfbc
diff --git a/crates/openhuman-core/src/agent/agent_turn_loop_nudge_tests.rs b/crates/openhuman-core/src/agent/agent_turn_loop_nudge_tests.rs
index d08261f7e2..59aa532a61 100644
--- a/crates/openhuman-core/src/agent/agent_turn_loop_nudge_tests.rs
+++ b/crates/openhuman-core/src/agent/agent_turn_loop_nudge_tests.rs
@@ -121,6 +121,7 @@ async fn run_turn_failing_from(
fail_from_call,
});
let (mut agent, tmp) = build_agent_with(provider.clone(), tools, Box::new(NativeDialect));
+ crate::storage::local::use_persistent_default_for_test(tmp.path());
let outcome = agent.turn("do the thing").await;
assert_eq!(
outcome.is_err(),