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 24e7e98ff2b1b496be83e92d4e8f35938a4fba9a
Author: Sam Tunnicliffe <[email protected]>
AuthorDate: Wed Nov 8 17:41:45 2023 +0000

    [CEP-21] Adjust expected exception when replacing nonexistent node.
---
 replace_address_test.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/replace_address_test.py b/replace_address_test.py
index babdeaa9..fcaa321e 100644
--- a/replace_address_test.py
+++ b/replace_address_test.py
@@ -338,8 +338,10 @@ class TestReplaceAddress(BaseReplaceAddressTest):
 
         logger.debug("Waiting for replace to fail")
         node_log_str = "/127.0.0.5" if self.cluster.version() < '4.0' else 
"/127.0.0.5:7000"
-        self.replacement_node.watch_log_for("java.lang.RuntimeException: 
Cannot replace_address "
-                                            + node_log_str + " because it 
doesn't exist in gossip")
+        log_message = "java.lang.RuntimeException: Cannot replace_address {} 
because it doesn't exist in gossip" \
+            if self.cluster.version() < LooseVersion('5.1') \
+            else "Cannot replace node {} which is not currently joined"
+        self.replacement_node.watch_log_for(log_message.format(node_log_str))
         assert_not_running(self.replacement_node)
 
     @since('3.6')


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

Reply via email to