Lightweight coding agent that runs in your terminal
Rust
fix: flaky tests (#5625)
jif-oai80783a7bb958
diff --git a/codex-rs/core/tests/suite/unified_exec.rs b/codex-rs/core/tests/suite/unified_exec.rsindex 5d5c21d0e4..4a29d6ccd0 100644--- a/codex-rs/core/tests/suite/unified_exec.rs+++ b/codex-rs/core/tests/suite/unified_exec.rs@@ -156,6 +156,12 @@ async fn unified_exec_emits_exec_command_end_event() -> Result<()> {"cmd": "/bin/echo END-EVENT".to_string(),"yield_time_ms": 250,});+ let poll_call_id = "uexec-end-event-poll";+ let poll_args = json!({+ "chars": "",+ "session_id": 0,+ "yield_time_ms": 250,+ });let responses = vec![sse(vec![@@ -165,9 +171,18 @@ async fn unified_exec_emits_exec_command_end_event() -> Result<()> {]),sse(vec![ev_response_created("resp-2"),- ev_assistant_message("msg-1", "finished"),+ ev_function_call(+ poll_call_id,+ "write_stdin",+ &serde_json::to_string(&poll_args)?,+ ),ev_completed("resp-2"),]),+ sse(vec![+ ev_response_created("resp-3"),+ ev_assistant_message("msg-1", "finished"),+ ev_completed("resp-3"),+ ]),];mount_sse_sequence(&server, responses).await;