summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/proto.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-02-10 16:34:37 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-02-10 16:34:37 +0000
commit11f7d833a9bad1fb3f066cee815fe9772bed4875 (patch)
tree381059336b02e2b505953702a81bd0ab62eeb2cf /test/unit/applications/proto.py
parent4404097e05dc71b7ee78ef49c8ba4d0eaf234f85 (diff)
downloadunit-11f7d833a9bad1fb3f066cee815fe9772bed4875.tar.gz
unit-11f7d833a9bad1fb3f066cee815fe9772bed4875.tar.bz2
Tests: increased timeout in wait_for_record().
Diffstat (limited to 'test/unit/applications/proto.py')
-rw-r--r--test/unit/applications/proto.py4
1 files changed, 2 insertions, 2 deletions
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: