From 97b194a45485310199b76abadba46446f31ab42f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 Mar 2020 06:20:36 +0100 Subject: [PATCH] Throttle may take longer than .10s on slow machines This made this test fluky on windows CI ... --- tests/test_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 7b446ac6a..839f7cdac 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -60,7 +60,7 @@ def test_throttle(mocker, default_conf, caplog) -> None: assert result == 42 assert end - start > 0.1 - assert log_has_re(r"Throttling with 'throttled_func\(\)': sleep for 0\.10 s.*", caplog) + assert log_has_re(r"Throttling with 'throttled_func\(\)': sleep for \d\.\d{2} s.*", caplog) result = worker._throttle(throttled_func, throttle_secs=-1) assert result == 42