use of com.google.api.gax.rpc.InternalException in project java-firestore by googleapis.
the class WatchTest method queryWatchRetriesOnInternalException.
@Test
public void queryWatchRetriesOnInternalException() throws InterruptedException {
addQueryListener();
awaitAddTarget();
send(addTarget());
destroy(new InternalException(null, GrpcStatusCode.of(Code.INTERNAL), true));
awaitAddTarget();
send(addTarget());
send(current());
send(snapshot());
awaitQuerySnapshot();
}
Aggregations