Tests: unit_stop() removed where possible.
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
This commit is contained in:
@@ -2,7 +2,6 @@ import re
|
||||
|
||||
import pytest
|
||||
|
||||
from conftest import unit_stop
|
||||
from unit.applications.lang.perl import TestApplicationPerl
|
||||
|
||||
|
||||
@@ -119,8 +118,6 @@ class TestPerlApplication(TestApplicationPerl):
|
||||
|
||||
assert self.get()['body'] == '1', 'errors result'
|
||||
|
||||
unit_stop()
|
||||
|
||||
assert (
|
||||
self.wait_for_record(r'\[error\].+Error in application')
|
||||
is not None
|
||||
|
||||
Reference in New Issue
Block a user