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) (#3443)

Signed-off-by: Tianli Feng <[email protected]>
(cherry picked from commit 5099780)
  • Loading branch information
opensearch-trigger-bot[bot] authored May 26, 2022
1 parent 9288720 commit bd1ea0e
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 bd1ea0e

Please sign in to comment.