Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Shut down Codex threads after approval scenarios (#33441)

jif08924bca0058
diff --git a/codex-rs/core/tests/suite/approvals.rs b/codex-rs/core/tests/suite/approvals.rs
index 21da8ca444..da822652ba 100644
--- a/codex-rs/core/tests/suite/approvals.rs
+++ b/codex-rs/core/tests/suite/approvals.rs
@@ -2000,9 +2000,9 @@ async fn run_scenario(scenario: &ScenarioSpec) -> Result<()> {
"approval scenario {} result: exit_code={:?} stdout={:?}",
scenario.name, result.exit_code, result.stdout
);
- scenario.expectation.verify(&test, &result)?;
-
- Ok(())
+ let verification_result = scenario.expectation.verify(&test, &result);
+ test.codex.shutdown_and_wait().await?;
+ verification_result
}
#[tokio::test(flavor = "current_thread")]