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.git
commit b4701177335216fc6131b9303cfe926da9016129 Author: Sam Tunnicliffe <s...@apache.org> AuthorDate: Wed Dec 6 09:10:26 2023 +0000 Fix potential for unintended address clash in test case Patch by Sam Tunnicliffe; reviewed by Alex Petrov for CASSANDRA-19171 --- test/unit/org/apache/cassandra/locator/PropertyFileSnitchTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/org/apache/cassandra/locator/PropertyFileSnitchTest.java b/test/unit/org/apache/cassandra/locator/PropertyFileSnitchTest.java index d05c7efea0..1b4b4311b0 100644 --- a/test/unit/org/apache/cassandra/locator/PropertyFileSnitchTest.java +++ b/test/unit/org/apache/cassandra/locator/PropertyFileSnitchTest.java @@ -117,7 +117,7 @@ public class PropertyFileSnitchTest // Locations of remote peers should not be accessible from this snitch unless // they are present in ClusterMetadata Random r = new Random(System.nanoTime()); - InetAddressAndPort peer = MembershipUtils.randomEndpoint(r); + InetAddressAndPort peer = MembershipUtils.endpoint(99); replaceConfigFile(ImmutableMap.of(localAddress.getHostAddressAndPort(), "DC1:RAC1", peer.getHostAddressAndPort(), "OTHER_DC1:OTHER_RAC1")); PropertyFileSnitch snitch = new PropertyFileSnitch(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org