use of io.servicetalk.client.api.LoadBalancerReadyEvent.LOAD_BALANCER_READY_EVENT in project servicetalk by apple.
the class RetryingHttpRequesterFilterAutoRetryStrategiesTest method disableRetryAllRetryableExWithNoAvailableHost.
@Test
void disableRetryAllRetryableExWithNoAvailableHost() {
final ContextAwareRetryingHttpClientFilter filter = newFilter(new RetryingHttpRequesterFilter.Builder().retryRetryableExceptions((__, ___) -> ofNoRetries()));
Completable retry = applyRetry(filter, 1, NO_AVAILABLE_HOST);
toSource(retry).subscribe(retrySubscriber);
assertThat(retrySubscriber.pollTerminal(10, MILLISECONDS), is(nullValue()));
lbEvents.onNext(LOAD_BALANCER_READY_EVENT);
verifyRetryResultCompleted();
}
Aggregations