Skip to content
Open
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
4 changes: 2 additions & 2 deletions jmx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_netstats(self):
node1.flush()
node1.stop(gently=False)

with pytest.raises(ToolError, match=r"ConnectException: 'Connection refused( \(Connection refused\))?'."):
with pytest.raises(ToolError, match=r"ConnectException: Connection refused"):
node1.nodetool('netstats')

# don't wait; we're testing for when nodetool is called on a node mid-startup
Expand All @@ -65,7 +65,7 @@ def test_netstats(self):
if cluster.version() >= LooseVersion('5.1'):
assert re.search("Server is not initialized yet, cannot run nodetool", repr(e)), str(e)
else:
assert re.search("ConnectException: 'Connection refused( \(Connection refused\))?'.", repr(e)), str(e)
assert re.search(r"ConnectException: Connection refused", repr(e)), str(e)

assert running, 'node1 never started'

Expand Down