Skip to content

Commit

Permalink
tests: Also lower rounds on test_queue_output for PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Dec 28, 2023
1 parent 0f0d9a5 commit 5882e10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_command_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ def test_queue_output():
print("Queue test uses concurrent futures. Won't run on python 2.7, sorry.")
return

for i in range(0, 500):
# pypy is quite slow with poller method on github actions.
# Lets lower rounds
max_rounds = 100 if is_pypy() else 1000
print("\nSetting up test_read_file for {} rounds".format(max_rounds))
for i in range(0, max_rounds):
for stream in streams:
for method in methods:
if method == 'monitor' and i > 1:
Expand Down

0 comments on commit 5882e10

Please sign in to comment.