Tests: wait for unit.pid file before running tests.
Waiting for control.unit.sock was replaced by unit.pid due to current problem with race between connect() and listen() calls for control.unit.sock. This change should be reverted after fix.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user