Skip to content

Commit d15f891

Browse files
committed
macOS needs even more extra time in test_blocking_lock_file
As seen in: https://github.com/EliahKagan/GitPython/actions/runs/7056321920/attempts/1 Usually an extra_time of 0.12 (6x) is sufficient for both Windows and macOS, but sometimes macOS needs even more, so this increases it to 0.18 (9x) for macOS.
1 parent c16e4f3 commit d15f891

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,10 @@ def test_blocking_lock_file(self):
397397
self.assertRaises(IOError, wait_lock._obtain_lock)
398398
elapsed = time.time() - start
399399
extra_time = 0.02
400-
if os.name == "nt" or sys.platform == "cygwin" or sys.platform == "darwin":
401-
extra_time *= 6 # NOTE: Indeterministic failures without this...
400+
if os.name == "nt" or sys.platform == "cygwin":
401+
extra_time *= 6 # Without this, we get indeterministic failures on Windows.
402+
elif sys.platform == "darwin":
403+
extra_time *= 9 # The situation on macOS is similar, but with more delay.
402404
self.assertLess(elapsed, wait_time + extra_time)
403405

404406
def test_user_id(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy