File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/test/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1414import org .elasticsearch .common .unit .ByteSizeValue ;
1515import org .elasticsearch .test .ESTestCase ;
1616
17+ import static org .elasticsearch .cluster .node .DiscoveryNodeRole .VOTING_ONLY_NODE_ROLE ;
1718import static org .elasticsearch .node .Node .NODE_EXTERNAL_ID_SETTING ;
1819import static org .elasticsearch .node .Node .NODE_NAME_SETTING ;
1920import static org .elasticsearch .node .NodeRoleSettings .NODE_ROLES_SETTING ;
@@ -90,11 +91,10 @@ public void testHasMasterRole() {
9091 }
9192 }
9293
93- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/85882" )
9494 public void testGetRoles () {
9595 final var settings = Settings .builder ().put (NODE_NAME_SETTING .getKey (), randomAlphaOfLength (10 ));
9696
97- final var role = randomBoolean () ? null : randomFrom (DiscoveryNodeRole .roles ());
97+ final var role = randomBoolean () ? null : randomValueOtherThan ( VOTING_ONLY_NODE_ROLE , () -> randomFrom (DiscoveryNodeRole .roles () ));
9898 if (role != null ) {
9999 settings .put (NODE_ROLES_SETTING .getKey (), role .roleName ());
100100 }
You can’t perform that action at this time.
0 commit comments