Skip to content

Commit

Permalink
Fix spotless check
Browse files Browse the repository at this point in the history
Signed-off-by: Rishab Nahata <[email protected]>
  • Loading branch information
imRishN committed Sep 21, 2022
1 parent 5ef1348 commit 4921a79
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ public void testJoinClusterWithNoDecommission() {
public void testPreventJoinClusterWithDecommission() {
Settings.builder().build();
DecommissionAttribute decommissionAttribute = new DecommissionAttribute("zone", "zone-1");
DecommissionStatus decommissionStatus = randomFrom(DecommissionStatus.IN_PROGRESS, DecommissionStatus.SUCCESSFUL);
DecommissionStatus decommissionStatus = randomFrom(
DecommissionStatus.INIT,
DecommissionStatus.IN_PROGRESS,
DecommissionStatus.SUCCESSFUL
);
DecommissionAttributeMetadata decommissionAttributeMetadata = new DecommissionAttributeMetadata(
decommissionAttribute,
decommissionStatus
Expand All @@ -259,13 +263,12 @@ public void testJoinClusterWithDifferentDecommission() {
JoinTaskExecutor.ensureNodeCommissioned(discoveryNode, metadata);
}

public void testJoinClusterWithDecommissionFailedOrInitOrRecommission() {
public void testJoinClusterWithDecommissionFailed() {
Settings.builder().build();
DecommissionAttribute decommissionAttribute = new DecommissionAttribute("zone", "zone-1");
DecommissionStatus decommissionStatus = randomFrom(DecommissionStatus.INIT, DecommissionStatus.FAILED);
DecommissionAttributeMetadata decommissionAttributeMetadata = new DecommissionAttributeMetadata(
decommissionAttribute,
decommissionStatus
DecommissionStatus.FAILED
);
Metadata metadata = Metadata.builder().decommissionAttributeMetadata(decommissionAttributeMetadata).build();

Expand Down

0 comments on commit 4921a79

Please sign in to comment.