From 561f3c803449148884ee685ca7474091b7f998f4 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Fri, 21 Jun 2024 10:32:01 +0200 Subject: [PATCH] increased timeouts for slower platforms --- portalocker_tests/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portalocker_tests/tests.py b/portalocker_tests/tests.py index 25f1c44..be5abf6 100644 --- a/portalocker_tests/tests.py +++ b/portalocker_tests/tests.py @@ -334,7 +334,7 @@ def test_shared_processes(tmpfile, fail_when_locked): results = pool.starmap_async(lock, 2 * [args]) # sourcery skip: no-loop-in-tests - for result in results.get(timeout=0.5): + for result in results.get(timeout=1.0): print(f'{result=}') # sourcery skip: no-conditionals-in-tests if result.exception_class is not None: @@ -355,7 +355,7 @@ 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=0.6) # Wait for 'a' with timeout + a = result_a.get(timeout=1.0) # Wait for 'a' with timeout except multiprocessing.TimeoutError: a = None