Skip to content

Commit

Permalink
make tests even less strict..
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Dec 15, 2024
1 parent b510882 commit bac447c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/extract/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bac447c

Please sign in to comment.