use of com.netflix.titus.grpc.protogen.KeepAliveResponse in project titus-control-plane by Netflix.
the class RemoteJobManagementClientWithKeepAliveTest method testKeepAlive.
@Test
public void testKeepAlive() throws InterruptedException {
Iterator<JobChangeNotification> it = newClientConnection();
KeepAliveRequest keepAliveRequest = waitForClientKeepAliveRequest();
responseObserver.onNext(JobChangeNotification.newBuilder().setKeepAliveResponse(KeepAliveResponse.newBuilder().setRequest(keepAliveRequest).build()).build());
KeepAliveResponse keepAliveResponse = expectJobChangeNotification(it, JobChangeNotification.NotificationCase.KEEPALIVERESPONSE).getKeepAliveResponse();
assertThat(keepAliveResponse.getRequest()).isEqualTo(keepAliveRequest);
}
Aggregations