Skip to content

Commit 6de8ee1

Browse files
committed
Ninja: Removed ThreadLocalRandom usage in ANNOptionsDistributedTest, as causing test flakiness.
1 parent 34d68bb commit 6de8ee1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/distributed/org/apache/cassandra/distributed/test/sai/ANNOptionsDistributedTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.apache.cassandra.distributed.test.sai;
1818

19-
import java.util.concurrent.ThreadLocalRandom;
20-
2119
import org.junit.Test;
2220

2321
import net.bytebuddy.ByteBuddy;
@@ -120,8 +118,7 @@ public static class BB
120118
{
121119
public static void install(ClassLoader classLoader, int node)
122120
{
123-
// inject randomly first or second node to make sure it works if the node is a coordinator or replica
124-
if (node == ThreadLocalRandom.current().nextInt(1, 3))
121+
if (node == 1)
125122
{
126123
new ByteBuddy().rebase(MessagingService.class)
127124
.method(named("currentVersion"))

0 commit comments

Comments
 (0)