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 14
14
import org .elasticsearch .common .unit .ByteSizeValue ;
15
15
import org .elasticsearch .test .ESTestCase ;
16
16
17
+ import static org .elasticsearch .cluster .node .DiscoveryNodeRole .VOTING_ONLY_NODE_ROLE ;
17
18
import static org .elasticsearch .node .Node .NODE_EXTERNAL_ID_SETTING ;
18
19
import static org .elasticsearch .node .Node .NODE_NAME_SETTING ;
19
20
import static org .elasticsearch .node .NodeRoleSettings .NODE_ROLES_SETTING ;
@@ -90,11 +91,10 @@ public void testHasMasterRole() {
90
91
}
91
92
}
92
93
93
- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/85882" )
94
94
public void testGetRoles () {
95
95
final var settings = Settings .builder ().put (NODE_NAME_SETTING .getKey (), randomAlphaOfLength (10 ));
96
96
97
- final var role = randomBoolean () ? null : randomFrom (DiscoveryNodeRole .roles ());
97
+ final var role = randomBoolean () ? null : randomValueOtherThan ( VOTING_ONLY_NODE_ROLE , () -> randomFrom (DiscoveryNodeRole .roles () ));
98
98
if (role != null ) {
99
99
settings .put (NODE_ROLES_SETTING .getKey (), role .roleName ());
100
100
}
You can’t perform that action at this time.
0 commit comments