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

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


The following commit(s) were added to refs/heads/master by this push:
     new 103854f  CASSANDRA-15885 Fix flaky dtest assert sorting order
103854f is described below

commit 103854f0e6b369c7b3573520acb1a50b1b2c36d8
Author: Bereng <berenguerbl...@gmail.com>
AuthorDate: Wed Jun 24 19:18:01 2020 +0100

    CASSANDRA-15885 Fix flaky dtest assert sorting order
---
 replication_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/replication_test.py b/replication_test.py
index 8943961..b199551 100644
--- a/replication_test.py
+++ b/replication_test.py
@@ -349,7 +349,7 @@ class TestSnitchConfigurationUpdate(Tester):
                     if m:
                         racks.append(m.group(1))
                 racks.sort() #order is not deterministic
-                if racks == expected_racks:
+                if racks == sorted(expected_racks.copy()):
                     # great, the topology change is propagated
                     logger.debug("Topology change detected on node 
{}".format(i))
                     break


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to