Skip to content

Commit

Permalink
Change regex from connection to keep alive
Browse files Browse the repository at this point in the history
- Change the regex in test_cluster_connection.py to check for keepalive instead of connection
from master.
  • Loading branch information
RamosFe committed Sep 30, 2024
1 parent deb803c commit 74a0c1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_cluster_connection(artifacts_path):
with open(log_file) as f:
s = mmap(f.fileno(), 0, access=ACCESS_READ)
# Search first successful connection message.
conn = re.search(rb'^.*Successfully connected to master.*$', s, flags=re.MULTILINE)
conn = re.search(rb'^.*Successful response from master: keepalive*$', s, flags=re.MULTILINE)
if not conn:
pytest.fail(f'Could not find "Successfully connected to master" message in the '
f'{node_name.search(log_file)[1]}')
Expand Down

0 comments on commit 74a0c1d

Please sign in to comment.