use of com.yahoo.vespa.clustercontroller.core.restapiv2.requests.SetNodeStateRequest in project vespa by vespa-engine.
the class SetNodeStateTest method leadership_loss_marks_request_as_failed_for_early_out_response.
@Test
public void leadership_loss_marks_request_as_failed_for_early_out_response() {
SetNodeStateRequest request = createDummySetNodeStateRequest();
request.handleFailure(RemoteClusterControllerTask.FailureCondition.LEADERSHIP_LOST);
assertTrue(request.isFailed());
}
Aggregations