Skip to content

Commit

Permalink
Remove test annonation
Browse files Browse the repository at this point in the history
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
  • Loading branch information
pranikum committed Sep 26, 2022
1 parent d933377 commit bf4c217
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.opensearch.OpenSearchTimeoutException;
Expand Down Expand Up @@ -308,7 +307,6 @@ public void testSetWeightsForDecommission() {
assertEquals("1", request.wrrWeight().weights().get("zone-3"));
}

@Test(expected = AssertionError.class)
public void testSetWeightsForDecommissionForDecommissionInit() {
TransportService mockTransportService = Mockito.mock(TransportService.class);
Mockito.when(mockTransportService.getLocalNode()).thenReturn(Mockito.mock(DiscoveryNode.class));
Expand All @@ -325,7 +323,7 @@ public void testSetWeightsForDecommissionForDecommissionInit() {
state = ClusterState.builder(state).metadata(mdBuilder).build();
setState(clusterService, state);

decommissionController.setWeightForDecommissionedZone(List.of("zone-1", "zone-2", "zone-3"));
expectThrows(AssertionError.class, () -> decommissionController.setWeightForDecommissionedZone(List.of("zone-1", "zone-2", "zone-3")));
}

public void testCheckHttpStatsForDecommissionedNodes() {
Expand Down

0 comments on commit bf4c217

Please sign in to comment.