test(runner): wait for Codex tool completion

This commit is contained in:
Dotta 2026-09-02 23:18:25 -05:00
parent 32b1124242
commit 1b07b5a58b
1 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,8 @@ fn codex_dynamic_tool_round_trips_through_the_provider_boundary() {
let mut delivered = false;
let mut completed = false;
for _ in 0..32 {
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(5);
while std::time::Instant::now() < deadline {
match provider.poll().expect("poll semantic tool event") {
Some(CodexProviderEvent::ToolCall {
call_id,