summaryrefslogtreecommitdiffhomepage
path: root/test/unit/main.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/main.py b/test/unit/main.py
index cdab486f..3d95a5b1 100644
--- a/test/unit/main.py
+++ b/test/unit/main.py
@@ -185,7 +185,10 @@ class TestUnit(unittest.TestCase):
atexit.register(self.stop)
- if not self.waitforfiles(self.testdir + '/control.unit.sock'):
+ # Due to race between connect() and listen() after the socket binding
+ # tests waits for unit.pid file which is created after listen().
+
+ if not self.waitforfiles(self.testdir + '/unit.pid'):
exit("Could not start unit")
self.skip_alerts = [