Skip to content

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

test: assert exact removed-RPC error messages

Steven Enamakel3186637840fc
diff --git a/tests/raw_coverage/automation_scheduling_e2e.rs b/tests/raw_coverage/automation_scheduling_e2e.rs
index 63e9daafe5..7eb7199d1c 100644
--- a/tests/raw_coverage/automation_scheduling_e2e.rs
+++ b/tests/raw_coverage/automation_scheduling_e2e.rs
@@ -829,11 +829,7 @@ async fn managed_runtime_provisioning_rpcs_are_not_registered() {
let message = response["error"]["message"]
.as_str()
.expect("unknown method error");
- assert!(message.starts_with("unknown method:"), "{response}");
- assert!(
- message.contains(method.trim_start_matches("openhuman.")),
- "{response}"
- );
+ assert_eq!(message, format!("unknown method: {method}"));
}
h.join.abort();
}