From 923c098613c492d15464a043ea01a99683336b0f Mon Sep 17 00:00:00 2001 From: jif Date: Thu, 26 Nov 2026 13:40:31 +0000 Subject: [PATCH] Drop the child session during Statsig startup test cleanup (#64152) After observing the expected Statsig request, drop the child session before awaiting its exit. This uses the process handle's existing cleanup to terminate the child and stop its I/O tasks. GitOrigin-RevId: 17be552b74f7539ab46bbb4cb9dfa3bf9697ee08 --- codex-rs/cli/tests/statsig_startup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/cli/tests/statsig_startup.rs b/codex-rs/cli/tests/statsig_startup.rs index 565e65bda7..ab07ee9628 100644 --- a/codex-rs/cli/tests/statsig_startup.rs +++ b/codex-rs/cli/tests/statsig_startup.rs @@ -211,7 +211,7 @@ async fn harness_startup_requests_statsig_evaluations() -> Result<()> { "{mode} did not POST {endpoint}\n{}", String::from_utf8_lossy(&output), ); - child.session.terminate(); + drop(child.session); let _ = child.exit_rx.await; if let Some(daemon) = daemon { daemon.session.signal(codex_utils_pty::ProcessSignal::Interrupt)?;