From 7570363318deb8e6875fa7bb2fc3c72204151685 Mon Sep 17 00:00:00 2001 From: Samir Hanna Verza <123646616+samirhvbr@users.noreply.github.com> Date: Thu, 29 Oct 2026 07:02:38 -0300 Subject: [PATCH] test(retry): include telemetry settings in runner fixture The current upstream runner reads run_record_timings while constructing usage hooks. Its rate-limit test fixture predates that setting and raises AttributeError before reaching the mocked agent loop. Complete the shared fixture so both the existing rate-limit test and the non-OpenAI usage-limit regression exercise their intended paths. --- tests/test_runner_rate_limit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_runner_rate_limit.py b/tests/test_runner_rate_limit.py index 362b3c257..c54a085af 100644 --- a/tests/test_runner_rate_limit.py +++ b/tests/test_runner_rate_limit.py @@ -57,6 +57,7 @@ async def _run_scan_raising( extra_body=None, ), runtime=types.SimpleNamespace(max_context_images=3), + telemetry=types.SimpleNamespace(run_record_timings=False), ) monkeypatch.setattr(runner, "load_settings", lambda: settings) monkeypatch.setattr(runner, "configure_sdk_model_defaults", lambda _settings: None)