Tests: used relative path for configuration.

This commit is contained in:
Andrey Zelenkov
2018-09-06 20:18:33 +03:00
parent 58d23eb5b4
commit 511a0fa760
11 changed files with 125 additions and 126 deletions

View File

@@ -131,7 +131,7 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertIn('success', self.conf({
"spare": i % 4,
"max": (i % 4) + 1
}, '/applications/mirror/processes'), 'reconfigure')
}, 'applications/mirror/processes'), 'reconfigure')
socks.append(sock)
@@ -146,7 +146,7 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertIn('success', self.conf({
"spare": i % 4,
"max": (i % 4) + 1
}, '/applications/mirror/processes'), 'reconfigure 2')
}, 'applications/mirror/processes'), 'reconfigure 2')
for i in range(conns):
resp = self.post(headers={
@@ -159,7 +159,7 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertIn('success', self.conf({
"spare": i % 4,
"max": (i % 4) + 1
}, '/applications/mirror/processes'), 'reconfigure 3')
}, 'applications/mirror/processes'), 'reconfigure 3')
def test_python_keepalive_reconfigure_2(self):
self.skip_alerts.append(r'sendmsg.+failed')