From d99b5dfdb4bdfa42e92f68663628134ad0b8d89d Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Sat, 30 May 2015 11:50:00 +0200 Subject: [PATCH] test: use ElasticsearchTestCase#settings(Version) to test bwc behaviour instead of setting the version directly. --- .../elasticsearch/search/child/ChildQuerySearchBwcTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/child/ChildQuerySearchBwcTests.java b/src/test/java/org/elasticsearch/search/child/ChildQuerySearchBwcTests.java index 59a04b29c3c..57b053db08a 100644 --- a/src/test/java/org/elasticsearch/search/child/ChildQuerySearchBwcTests.java +++ b/src/test/java/org/elasticsearch/search/child/ChildQuerySearchBwcTests.java @@ -24,7 +24,6 @@ import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheRespo import org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse; import org.elasticsearch.action.explain.ExplainResponse; import org.elasticsearch.action.search.SearchResponse; -import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.index.fielddata.FieldDataType; @@ -46,8 +45,7 @@ public class ChildQuerySearchBwcTests extends ChildQuerySearchTests { @Override public Settings indexSettings() { - return Settings.builder() - .put(super.indexSettings()).put(IndexMetaData.SETTING_VERSION_CREATED, Version.V_1_6_0).build(); + return settings(Version.V_1_6_0).put(super.indexSettings()).build(); } public void testSelfReferentialIsForbidden() {