diff --git a/opensearch/src/test/java/zipkin2/storage/elasticsearch/OpensearchContainer.java b/opensearch/src/test/java/zipkin2/storage/elasticsearch/OpensearchContainer.java index 6060176..447a8cf 100644 --- a/opensearch/src/test/java/zipkin2/storage/elasticsearch/OpensearchContainer.java +++ b/opensearch/src/test/java/zipkin2/storage/elasticsearch/OpensearchContainer.java @@ -47,7 +47,7 @@ class OpensearchContainer extends GenericContainer { ElasticsearchStorage.Builder newStorageBuilder() { WebClientBuilder builder = WebClient.builder("http://" + hostPort()) - .factory(ClientFactory.builder().build()); + .factory(ClientFactory.ofDefault()); builder.decorator((delegate, ctx, req) -> { final HttpResponse response = delegate.execute(ctx, req); return HttpResponse.of(response.aggregate().thenApply(r -> {