mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Attempt fix of test/unit/test_lazy_process.py which transiently fails.
This commit is contained in:
@@ -11,9 +11,8 @@ def test_lazy_process():
|
||||
lazy_process = LazyProcess(["bash", "-c", "touch %s; sleep 100" % t.name])
|
||||
assert not os.path.exists(t.name)
|
||||
lazy_process.start_process()
|
||||
time.sleep(.02)
|
||||
while not os.path.exists(t.name):
|
||||
time.sleep(.01)
|
||||
assert lazy_process.process.poll() is None
|
||||
assert os.path.exists(t.name)
|
||||
lazy_process.shutdown()
|
||||
time.sleep(.02)
|
||||
assert lazy_process.process.poll()
|
||||
|
||||
Reference in New Issue
Block a user