mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
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:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user