diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-02-10 16:34:37 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-02-10 16:34:37 +0000 |
commit | 11f7d833a9bad1fb3f066cee815fe9772bed4875 (patch) | |
tree | 381059336b02e2b505953702a81bd0ab62eeb2cf /test | |
parent | 4404097e05dc71b7ee78ef49c8ba4d0eaf234f85 (diff) | |
download | unit-11f7d833a9bad1fb3f066cee815fe9772bed4875.tar.gz unit-11f7d833a9bad1fb3f066cee815fe9772bed4875.tar.bz2 |
Tests: increased timeout in wait_for_record().
Diffstat (limited to '')
-rw-r--r-- | test/test_asgi_application.py | 2 | ||||
-rw-r--r-- | test/test_python_application.py | 2 | ||||
-rw-r--r-- | test/unit/applications/proto.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/test_asgi_application.py b/test/test_asgi_application.py index 5770265d..886a160b 100644 --- a/test/test_asgi_application.py +++ b/test/test_asgi_application.py @@ -377,7 +377,7 @@ Connection: close self.get(no_recv=True) assert ( - self.wait_for_record(r'\(5\) Thread: 100') is not None + self.wait_for_record(r'\(5\) Thread: 100', wait=50) is not None ), 'last thread finished' def test_asgi_application_threads(self): diff --git a/test/test_python_application.py b/test/test_python_application.py index 709df3ff..41f6f538 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -569,7 +569,7 @@ last line: 987654321 self.get(no_recv=True) assert ( - self.wait_for_record(r'\(5\) Thread: 100') is not None + self.wait_for_record(r'\(5\) Thread: 100', wait=50) is not None ), 'last thread finished' def test_python_application_iter_exception(self): diff --git a/test/unit/applications/proto.py b/test/unit/applications/proto.py index af05d071..5c400621 100644 --- a/test/unit/applications/proto.py +++ b/test/unit/applications/proto.py @@ -19,8 +19,8 @@ class TestApplicationProto(TestControl): with open(option.temp_dir + '/' + name, 'r', errors='ignore') as f: return re.search(pattern, f.read()) - def wait_for_record(self, pattern, name='unit.log'): - for i in range(50): + def wait_for_record(self, pattern, name='unit.log', wait=150): + for i in range(wait): found = self.search_in_log(pattern, name) if found is not None: |