Skip to content

Commit

Permalink
increasing the timeouts to make the osx tests less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Jul 13, 2024
1 parent 76ab42e commit 11cb7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portalocker_tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ def test_exclusive_processes(tmpfile: str, fail_when_locked: bool, locker):
result_b = pool.apply_async(lock, [tmpfile, fail_when_locked, flags])

try:
a = result_a.get(timeout=1.0) # Wait for 'a' with timeout
a = result_a.get(timeout=1.1) # Wait for 'a' with timeout
except multiprocessing.TimeoutError:
a = None

try:
# Lower timeout since we already waited with `a`
b = result_b.get(timeout=0.1) # Wait for 'b' with timeout
b = result_b.get(timeout=0.2) # Wait for 'b' with timeout
except multiprocessing.TimeoutError:
b = None

Expand Down

0 comments on commit 11cb7a8

Please sign in to comment.