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
This commit is contained in:
jif
2026-11-26 13:53:26 +00:00
committed by copyberry
parent 8727186a0a
commit 923c098613
+1 -1
View File
@@ -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)?;