Fix sporadic failure in NestedObjectMapperTests

Relates #34225
This commit is contained in:
Jim Ferenczi 2018-10-04 07:40:46 +02:00
parent 81227dc389
commit e8b986cc37
1 changed files with 1 additions and 2 deletions

View File

@ -650,8 +650,7 @@ public class NestedObjectMapperTests extends ESSingleNodeTestCase {
.startObject("nested1").field("type", "nested").endObject() .startObject("nested1").field("type", "nested").endObject()
.endObject().endObject().endObject()); .endObject().endObject().endObject());
Version bwcVersion = VersionUtils.randomVersionBetween(random(), Version.V_6_0_0, Version bwcVersion = VersionUtils.randomVersionBetween(random(), Version.V_6_0_0, Version.V_6_4_0);
Version.V_6_5_0);
for (Version version : new Version[] {Version.V_6_5_0, bwcVersion}) { for (Version version : new Version[] {Version.V_6_5_0, bwcVersion}) {
DocumentMapper docMapper = createIndex("test-" + version, DocumentMapper docMapper = createIndex("test-" + version,
Settings.builder().put(IndexMetaData.SETTING_INDEX_VERSION_CREATED.getKey(), version).build()) Settings.builder().put(IndexMetaData.SETTING_INDEX_VERSION_CREATED.getKey(), version).build())