Skip to content

Commit 47a3d9d

Browse files
Copilotxrmx
andauthored
Fix flaky tornado test by increasing delta tolerance to 0.02 (#4550)
* Initial plan * Fix flaky tornado test by increasing delta tolerance to 0.02 The test_metrics_concurrent_requests test was flaky on pypy/ubuntu because the delta between server and client duration for fast async requests can exceed 0.01 seconds due to scheduling jitter. Assisted-by: Claude Sonnet 4 Agent-Logs-Url: https://github.com/open-telemetry/opentelemetry-python-contrib/sessions/a65606a0-612d-49b2-bcda-8b3942ee3e63 Co-authored-by: xrmx <12932+xrmx@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: xrmx <12932+xrmx@users.noreply.github.com> Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
1 parent 4447323 commit 47a3d9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

instrumentation/opentelemetry-instrumentation-tornado/tests/test_metrics_instrumentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async def test_metrics_concurrent_requests(self):
246246
- req2_client_duration_data_point.sum
247247
),
248248
0.0,
249-
delta=0.01,
249+
delta=0.02,
250250
)
251251

252252
# Make sure duration is roughly equivalent to expected (req1/slow) should be around 1 second

0 commit comments

Comments
 (0)