Skip to content

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

test(registry): isolate diagnostics test with temp workspace

Steven Enamakelc0efebb25271
diff --git a/crates/openhuman-core/src/tools/registry/ops_tests.rs b/crates/openhuman-core/src/tools/registry/ops_tests.rs
index 3003a60596..bc7eb0e7ad 100644
--- a/crates/openhuman-core/src/tools/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/tools/registry/ops_tests.rs
@@ -400,7 +400,12 @@ async fn diagnostics_report_denials_recorded_through_tinytools() {
"blocked",
"probe denial reason",
);
- let diagnostics = diagnostics_for_config(&Config::default()).await;
+ let workspace = tempfile::tempdir().expect("tempdir");
+ let config = Config {
+ workspace_dir: workspace.path().to_path_buf(),
+ ..Config::default()
+ };
+ let diagnostics = diagnostics_for_config(&config).await;
let denial = diagnostics
.value
.recent_denials