From 8215b81920d3fe5f414768f18efd6823a9c4f45e Mon Sep 17 00:00:00 2001 From: jgershen-oai Date: Wed, 23 Sep 2026 23:24:22 +0000 Subject: [PATCH] Avoid the shutdown timeout in the lagged-event test (#47696) Drop the unused command receiver immediately in `next_event_surfaces_lagged_markers`. Keeping it alive lets `shutdown()` enqueue a command that nobody handles, causing it to wait for the response timeout before completing. GitOrigin-RevId: ce9e13b6f097d4545517ed465c1d3e2343c3d4da --- codex-rs/app-server-client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/app-server-client/src/lib.rs b/codex-rs/app-server-client/src/lib.rs index f1f93a1e48..d0241e761a 100644 --- a/codex-rs/app-server-client/src/lib.rs +++ b/codex-rs/app-server-client/src/lib.rs @@ -2016,7 +2016,7 @@ mod tests { #[tokio::test] async fn next_event_surfaces_lagged_markers() { - let (command_tx, _command_rx) = mpsc::channel(1); + let (command_tx, _) = mpsc::channel(1); let (event_tx, event_rx) = mpsc::unbounded_channel(); let worker_handle = tokio::spawn(async {}); event_tx