mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
typo, longer timeout
This commit is contained in:
parent
7fdeb8797e
commit
f2cfd96b5e
@ -645,7 +645,7 @@ class PidFileLocking(SyncTestCase):
|
|||||||
"with filelock.FileLock('{}', timeout=1):".format(lockfile.path),
|
"with filelock.FileLock('{}', timeout=1):".format(lockfile.path),
|
||||||
" sys.stdout.write('.\\n')",
|
" sys.stdout.write('.\\n')",
|
||||||
" sys.stdout.flush()",
|
" sys.stdout.flush()",
|
||||||
" time.sleep(5)",
|
" time.sleep(10)",
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
proc = Popen(
|
proc = Popen(
|
||||||
@ -656,7 +656,7 @@ class PidFileLocking(SyncTestCase):
|
|||||||
)
|
)
|
||||||
# make sure our subprocess has had time to acquire the lock
|
# make sure our subprocess has had time to acquire the lock
|
||||||
# for sure (from the "." it prints)
|
# for sure (from the "." it prints)
|
||||||
proc.stdout.read(2),
|
proc.stdout.read(2)
|
||||||
|
|
||||||
# acquiring the same lock should fail; it is locked by the subprocess
|
# acquiring the same lock should fail; it is locked by the subprocess
|
||||||
with self.assertRaises(ProcessInTheWay):
|
with self.assertRaises(ProcessInTheWay):
|
||||||
|
Loading…
Reference in New Issue
Block a user