Fix pending input test waiting logic (#11322)

## Summary
- remove redundant user message wait that could time out and cause
flakiness
- rely on the existing turn-complete wait to ensure the follow-up
request is observed

## Testing
- Not run (not requested)
This commit is contained in:
jif-oai
2026-02-10 15:40:53 +00:00
committed by GitHub
parent c19969c676
commit 59c625458b

View File

@@ -125,11 +125,6 @@ async fn injected_user_input_triggers_follow_up_request_with_deltas() {
let _ = gate_completed_tx.send(());
let _ = wait_for_event(&codex, |event| {
matches!(event, EventMsg::UserMessage(message) if message.message == "second prompt")
})
.await;
wait_for_event(&codex, |event| matches!(event, EventMsg::TurnComplete(_))).await;
let requests = server.requests().await;