Skip to content

Commit

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

Signed-off-by: Tianli Feng <ftianli@amazon.com>
  • Loading branch information
Tianli Feng committed May 25, 2022
1 parent 5320b68 commit 86cc9a0
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 86cc9a0

Please sign in to comment.