Prefer wait_for_event over wait_for_event_with_timeout. (#6346)

No need to specify the timeout in most cases.
This commit is contained in:
pakrym-oai
2025-11-06 16:14:43 -08:00
committed by GitHub
parent 039a4b070e
commit f8b30af6dc
2 changed files with 3 additions and 5 deletions

View File

@@ -84,6 +84,7 @@ If you dont have the tool:
- Use `ResponseMock::single_request()` when a test should only issue one POST, or `ResponseMock::requests()` to inspect every captured `ResponsesRequest`.
- `ResponsesRequest` exposes helpers (`body_json`, `input`, `function_call_output`, `custom_tool_call_output`, `call_output`, `header`, `path`, `query_param`) so assertions can target structured payloads instead of manual JSON digging.
- Build SSE payloads with the provided `ev_*` constructors and the `sse(...)`.
- Prefer `wait_for_event` over `wait_for_event_with_timeout`.
- Typical pattern: