diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 16:14:42 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 16:14:42 +0300 |
commit | 549f0873c2beed9517fb4006e1f0a63e0019abb3 (patch) | |
tree | fc77a4c4b93a333b08e7b7d8ff28248bd8f74ba6 /test/test_perl_application.py | |
parent | cfcf4da7fab046cf4dad47b499fa44abbc8f62b8 (diff) | |
download | unit-549f0873c2beed9517fb4006e1f0a63e0019abb3.tar.gz unit-549f0873c2beed9517fb4006e1f0a63e0019abb3.tar.bz2 |
Tests: wait_for_record() introduced.
Diffstat (limited to 'test/test_perl_application.py')
-rw-r--r-- | test/test_perl_application.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_perl_application.py b/test/test_perl_application.py index 00d4a3e5..df037155 100644 --- a/test/test_perl_application.py +++ b/test/test_perl_application.py @@ -137,7 +137,7 @@ class TestPerlApplication(TestApplicationPerl): self.stop() self.assertIsNotNone( - self.search_in_log(r'\[error\].+Error in application'), + self.wait_for_record(r'\[error\].+Error in application'), 'errors print', ) @@ -226,12 +226,12 @@ class TestPerlApplication(TestApplicationPerl): self.assertEqual(self.get()['body'], '21', 'body io fake') self.assertIsNotNone( - self.search_in_log(r'\[error\].+IOFake getline\(\) \$\/ is \d+'), + self.wait_for_record(r'\[error\].+IOFake getline\(\) \$\/ is \d+'), 'body io fake $/ value', ) self.assertIsNotNone( - self.search_in_log(r'\[error\].+IOFake close\(\) called'), + self.wait_for_record(r'\[error\].+IOFake close\(\) called'), 'body io fake close', ) |