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)?;