mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
Fix Guardian timeout message assertions
This commit is contained in:
@@ -1701,7 +1701,7 @@ async fn guardian_review_decision_maps_to_mcp_tool_decision() {
|
||||
else {
|
||||
panic!("guardian timeout should carry a timeout message");
|
||||
};
|
||||
assert!(message.contains("did not finish before its deadline"));
|
||||
assert!(message.contains("Automatic approval review timed out"));
|
||||
assert!(!message.contains("unacceptable risk"));
|
||||
assert_eq!(
|
||||
mcp_tool_approval_decision_from_guardian(
|
||||
|
||||
@@ -147,7 +147,7 @@ async fn guardian_timeout_falls_back_to_manual_approval_end_to_end() -> Result<(
|
||||
approval
|
||||
.reason
|
||||
.as_deref()
|
||||
.is_some_and(|reason| reason.contains("did not finish before its deadline"))
|
||||
.is_some_and(|reason| reason.contains("Automatic approval review timed out"))
|
||||
);
|
||||
|
||||
test.codex
|
||||
|
||||
Reference in New Issue
Block a user