summaryrefslogtreecommitdiffhomepage
path: root/test/test_usr1.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-01-12 06:20:23 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-01-12 06:20:23 +0000
commitf5ac1432463e58873b2c801b6db64dbe4d0e8f1c (patch)
tree7bf4b98c915e2bb90372189d061dd8067e4bf7c5 /test/test_usr1.py
parenta0bc946db306b921fd2db909377e72bf6671e843 (diff)
downloadunit-f5ac1432463e58873b2c801b6db64dbe4d0e8f1c.tar.gz
unit-f5ac1432463e58873b2c801b6db64dbe4d0e8f1c.tar.bz2
Tests: unit_stop() removed where possible.
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
Diffstat (limited to 'test/test_usr1.py')
-rw-r--r--test/test_usr1.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/test_usr1.py b/test/test_usr1.py
index 44f19d23..dbb5265c 100644
--- a/test/test_usr1.py
+++ b/test/test_usr1.py
@@ -1,7 +1,6 @@
import os
from subprocess import call
-from conftest import unit_stop
from unit.applications.lang.python import TestApplicationPython
from unit.utils import waitforfiles
@@ -41,8 +40,6 @@ class TestUSR1(TestApplicationPython):
assert self.get(url='/usr1')['status'] == 200
- unit_stop()
-
assert (
self.wait_for_record(r'"GET /usr1 HTTP/1.1" 200 0 "-" "-"', log)
is not None
@@ -74,8 +71,6 @@ class TestUSR1(TestApplicationPython):
body = 'body_for_a_log_unit'
assert self.post(body=body)['status'] == 200
- unit_stop()
-
assert self.wait_for_record(body) is not None, 'rename new'
assert self.search_in_log(body, log_new) is None, 'rename new 2'