Skip to content

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

test(ci): assert the MCP audit fails for the reason the test sets up

M3gA-Mind66898a9d5266
diff --git a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
index 0711875c37..7e815b3a58 100644
--- a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
@@ -517,7 +517,7 @@ async fn tool_registry_diagnostics_reports_config_and_audit_store_failures() {
.mcp_write_audit
.last_error
.as_deref()
- .is_some_and(|error| !error.is_empty()));
+ .is_some_and(|error| error.contains("MCP module unavailable")));
}
#[tokio::test]