From 56b3c10ec09d9f158500b5799144c664d2fbc7b8 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 25 Nov 2014 23:02:05 -0500 Subject: [PATCH] Attempt fix of test/unit/test_lazy_process.py which transiently fails. --- test/unit/test_lazy_process.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/test_lazy_process.py b/test/unit/test_lazy_process.py index 6554c84ed87..c224696a79c 100644 --- a/test/unit/test_lazy_process.py +++ b/test/unit/test_lazy_process.py @@ -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()