Lightweight coding agent that runs in your terminal
Rust
Increase the patch approval test timeout (#34438)
Adam Perry @ OpenAIc0cd337766ff
diff --git a/codex-rs/core/tests/suite/approvals.rs b/codex-rs/core/tests/suite/approvals.rsindex d6cd44c8c8..7b589bb94c 100644--- a/codex-rs/core/tests/suite/approvals.rs+++ b/codex-rs/core/tests/suite/approvals.rs@@ -803,12 +803,16 @@ async fn expect_patch_approval(test: &TestCodex,expected_call_id: &str,) -> ApplyPatchApprovalRequestEvent {- let event = wait_for_event(&test.codex, |event| {- matches!(- event,- EventMsg::ApplyPatchApprovalRequest(_) | EventMsg::TurnComplete(_)- )- })+ let event = wait_for_event_with_timeout(+ &test.codex,+ |event| {+ matches!(+ event,+ EventMsg::ApplyPatchApprovalRequest(_) | EventMsg::TurnComplete(_)+ )+ },+ Duration::from_secs(15),+ ).await;match event {