mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## Why Timeout tests can avoid waiting for real deadlines by advancing Tokio's clock, but automatic advancement can expire requests before they reach the mock server. ## What changed Pause Tokio time in the stalled-header sampling and model catalog deadline tests. Keep polling until the mock server receives each request, then explicitly advance past the relevant timeout. Add bounded wall-clock waits and fail if a request completes before reaching the server. Preserve assertions for sampling retry exhaustion, connection permit recovery, and the catalog's `RequestTimeout` error. GitOrigin-RevId: 252be25d75d73c713a4b8ccac1ff20ad820df556