Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/test_testgres_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,14 +1059,16 @@ def test_logging(self, node_svc: PostgresNodeService):
assert lines is not None
assert type(lines) == list # noqa: E721

def LOCAL__test_lines():
def LOCAL__test_lines(lines: typing.Iterable[str]) -> bool:
assert isinstance(lines, typing.Iterable)
for s in lines:
if any(C_NODE_NAME in s for s in lines):
assert type(s) == str # noqa: E721
if C_NODE_NAME in s:
logging.info("OK. We found the node_name in a line \"{0}\"".format(s))
return True
return False
return False

if LOCAL__test_lines():
if LOCAL__test_lines(lines):
break

logging.info("Master node log file does not have an expected information.")
Expand Down