diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/VersionOverridingElasticsearchContainer.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/VersionOverridingElasticsearchContainer.java index c048359a03..d64e77cf26 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/VersionOverridingElasticsearchContainer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/VersionOverridingElasticsearchContainer.java @@ -15,6 +15,7 @@ */ package org.springframework.boot.autoconfigure.data.elasticsearch; +import org.elasticsearch.Version; import org.testcontainers.elasticsearch.ElasticsearchContainer; /** @@ -32,7 +33,7 @@ public class VersionOverridingElasticsearchContainer extends ElasticsearchContai /** * Elasticsearch version */ - protected static final String ELASTICSEARCH_VERSION = "7.6.1"; + protected static final String ELASTICSEARCH_VERSION = Version.CURRENT.toString(); public VersionOverridingElasticsearchContainer() { super(ELASTICSEARCH_IMAGE + ":" + ELASTICSEARCH_VERSION);