summaryrefslogtreecommitdiffhomepage
path: root/test/test_ruby_application.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_ruby_application.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 '')
-rw-r--r--test/test_ruby_application.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index 6a0c9c9f..8311f52f 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -2,7 +2,6 @@ import re
import pytest
-from conftest import unit_stop
from unit.applications.lang.ruby import TestApplicationRuby
@@ -175,8 +174,6 @@ class TestRubyApplication(TestApplicationRuby):
self.get()
- unit_stop()
-
assert (
self.wait_for_record(r'\[error\].+Error in application')
is not None
@@ -187,8 +184,6 @@ class TestRubyApplication(TestApplicationRuby):
self.get()
- unit_stop()
-
assert (
self.wait_for_record(r'\[error\].+1234567890') is not None
), 'errors puts int'
@@ -198,8 +193,6 @@ class TestRubyApplication(TestApplicationRuby):
self.get()
- unit_stop()
-
assert (
self.wait_for_record(r'\[error\].+Error in application')
is not None
@@ -215,7 +208,6 @@ class TestRubyApplication(TestApplicationRuby):
self.get()
- unit_stop()
assert (
self.wait_for_record(r'\[error\].+1234567890') is not None
@@ -228,8 +220,6 @@ class TestRubyApplication(TestApplicationRuby):
self.conf({"listeners": {}, "applications": {}})
- unit_stop()
-
assert (
self.wait_for_record(r'\[error\].+At exit called\.') is not None
), 'at exit'
@@ -289,8 +279,6 @@ class TestRubyApplication(TestApplicationRuby):
assert self.get()['status'] == 500, 'body each error status'
- unit_stop()
-
assert (
self.wait_for_record(r'\[error\].+Failed to run ruby script')
is not None