This is an automated email from the ASF dual-hosted git repository.

samt pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git

commit c28bf38dee5e5b61ea1751f5690921c5981d6aff
Author: Marcus Eriksson <[email protected]>
AuthorDate: Tue May 30 16:15:56 2023 +0200

    [CEP-21] fix netstats test
---
 jmx_test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/jmx_test.py b/jmx_test.py
index 3900d931..bc5f8b12 100644
--- a/jmx_test.py
+++ b/jmx_test.py
@@ -62,7 +62,10 @@ class TestJMX(Tester):
                 if not isinstance(e, ToolError):
                     raise
                 else:
-                    assert re.search("ConnectException: 'Connection refused( 
\(Connection refused\))?'.", repr(e))
+                    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 running, 'node1 never started'
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to