Skip to content

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

test(registry): await diagnostics in tinytools denial test

Steven Enamakelb21d96d8612d
diff --git a/crates/openhuman-core/src/tools/registry/ops_tests.rs b/crates/openhuman-core/src/tools/registry/ops_tests.rs
index c40cf7f98a..3003a60596 100644
--- a/crates/openhuman-core/src/tools/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/tools/registry/ops_tests.rs
@@ -392,15 +392,15 @@ async fn the_write_audit_probe_reads_the_store_the_writer_wrote_to() {
assert!(after.enabled, "the log is enabled when it is readable");
}
-#[test]
-fn diagnostics_report_denials_recorded_through_tinytools() {
+#[tokio::test]
+async fn diagnostics_report_denials_recorded_through_tinytools() {
tinytools::registry::denials::record(
"tools.registry_snapshot_probe",
"policy",
"blocked",
"probe denial reason",
);
- let diagnostics = diagnostics_for_config(&Config::default());
+ let diagnostics = diagnostics_for_config(&Config::default()).await;
let denial = diagnostics
.value
.recent_denials