From f73684549c0585e05bb3f7ff1e0ed6d42fc11d51 Mon Sep 17 00:00:00 2001 From: "unfoldci-flaky-test-autopilot[bot]" <243416357+unfoldci-flaky-test-autopilot[bot]@users.noreply.github.com> Date: Tue, 9 Dec 2025 15:37:16 +0000 Subject: [PATCH] fix: Increased the timeout to 0.7 seconds to accommodate the maximum random delay of 0.6 seconds, ensuring the condition has enough time to be met. --- tests/test_timing_issues.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_timing_issues.py b/tests/test_timing_issues.py index bf44860..4f8becf 100644 --- a/tests/test_timing_issues.py +++ b/tests/test_timing_issues.py @@ -100,11 +100,11 @@ def test_wait_with_variable_delay(self): """ ready_time = time.time() + random.uniform(0.1, 0.6) - result = wait_for_condition( - lambda: time.time() >= ready_time, - timeout_seconds=0.5, - poll_interval=0.1 - ) +result = wait_for_condition( + lambda: time.time() >= ready_time, + timeout_seconds=0.7, + poll_interval=0.1 +) # Fails ~20% of the time when random delay > 0.5s assert result, "Should have become ready in time"