From 9b9c9ece7cbb93b18f43b195f49bc2fa5ae4b243 Mon Sep 17 00:00:00 2001 From: Dave Date: Sun, 15 Dec 2024 22:09:03 +0100 Subject: [PATCH] make tests even less strict.. --- tests/extract/test_sources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/extract/test_sources.py b/tests/extract/test_sources.py index db9f7432a2..e3e81b409d 100644 --- a/tests/extract/test_sources.py +++ b/tests/extract/test_sources.py @@ -916,11 +916,11 @@ def rate_limited_resource(): elapsed = time.time() - start_time if rate_limit is None: - assert elapsed < 0.1 + assert elapsed < 0.2 elif rate_limit == 10: assert (elapsed > 1.0) and (elapsed < 3.0) elif rate_limit == 100: - assert (elapsed > 0.1) and (elapsed < 0.6) + assert (elapsed > 0.1) and (elapsed < 1.0) # run another check with a source and transformer # here we check that rate limit also works with multiple resources and on transformers @@ -938,7 +938,7 @@ def infinite_source(): elapsed = time.time() - start_time if rate_limit is None: - assert elapsed < 0.1 + assert elapsed < 0.2 elif rate_limit == 10: assert (elapsed > 2.5) and (elapsed < 5.0) elif rate_limit == 100: