mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the test a little more robust
This commit is contained in:
parent
cba932362f
commit
a24f108906
@ -136,6 +136,10 @@ class IPCLockTest(unittest.TestCase):
|
||||
tdirs = []
|
||||
while not tdirs:
|
||||
tdirs = list(tdirs_in('t', check_for_lock=True))
|
||||
for i in range(5):
|
||||
if is_tdir_locked(tdirs[0]):
|
||||
break
|
||||
time.sleep(1)
|
||||
self.assertTrue(is_tdir_locked(tdirs[0]))
|
||||
c2 = run_worker('calibre.utils.test_lock', 'other5')
|
||||
c2.wait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user