Skip to content

Commit bafccbc

Browse files
committed
fix test
1 parent c75f661 commit bafccbc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/allocation/CcrPrimaryFollowerAllocationDeciderTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,7 @@ public void testBootstrappingFollowerIndex() {
192192
static DiscoveryNode newNodeWithLegacyRoles(String id) {
193193
final Version version = VersionUtils.randomVersionBetween(random(),
194194
Version.V_6_0_0, VersionUtils.getPreviousVersion(Version.V_7_3_0));
195-
final Set<DiscoveryNodeRole> roles = Sets.newHashSet(DiscoveryNodeRole.DATA_ROLE);
196-
if (randomBoolean()) {
197-
roles.add(DiscoveryNodeRole.REMOTE_CLUSTER_CLIENT_ROLE);
198-
}
199-
return new DiscoveryNode(id, buildNewFakeTransportAddress(), emptyMap(), roles, version);
195+
return new DiscoveryNode(id, buildNewFakeTransportAddress(), emptyMap(), Sets.newHashSet(DiscoveryNodeRole.DATA_ROLE), version);
200196
}
201197

202198
static Decision executeAllocation(ClusterState clusterState, ShardRouting shardRouting, DiscoveryNode node) {

0 commit comments

Comments
 (0)