Skip to content

Commit

Permalink
Fix testSetAdditionalRolesCanAddDeprecatedMasterRole() by removing th…
Browse files Browse the repository at this point in the history
…e initial assertion (#3441)

Signed-off-by: Tianli Feng <[email protected]>
(cherry picked from commit 5099780)
  • Loading branch information
Tianli Feng authored and github-actions[bot] committed May 25, 2022
1 parent 9288720 commit 8d7fe5a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ public void testDiscoveryNodeIsRemoteClusterClientUnset() {
// as a workaround for making the new CLUSTER_MANAGER_ROLE has got the same abbreviation 'm'.
// The test validate this behavior.
public void testSetAdditionalRolesCanAddDeprecatedMasterRole() {
// Validate MASTER_ROLE is not in DiscoveryNodeRole.BUILT_IN_ROLES
assertFalse(DiscoveryNode.getPossibleRoleNames().contains(DiscoveryNodeRole.MASTER_ROLE.roleName()));

DiscoveryNode.setAdditionalRoles(Collections.emptySet());
assertTrue(DiscoveryNode.getPossibleRoleNames().contains(DiscoveryNodeRole.MASTER_ROLE.roleName()));
}
Expand Down

0 comments on commit 8d7fe5a

Please sign in to comment.