Skip to content

Commit b814b85

Browse files
committed
tweak tests
1 parent 24c748d commit b814b85

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

server/src/test/java/org/elasticsearch/index/codec/PerFieldMapperCodecTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
package org.elasticsearch.index.codec;
1111

1212
import org.apache.lucene.codecs.PostingsFormat;
13-
import org.apache.lucene.codecs.lucene101.Lucene101PostingsFormat;
1413
import org.elasticsearch.cluster.metadata.IndexMetadata;
1514
import org.elasticsearch.common.compress.CompressedXContent;
1615
import org.elasticsearch.common.settings.Settings;
@@ -94,8 +93,7 @@ public void testUseBloomFilter() throws IOException {
9493
assertThat(perFieldMapperCodec.getPostingsFormatForField("_id"), instanceOf(ES87BloomFilterPostingsFormat.class));
9594
assertThat(perFieldMapperCodec.useBloomFilter("another_field"), is(false));
9695

97-
Class<? extends PostingsFormat> expectedPostingsFormat = PerFieldFormatSupplier.USE_DEFAULT_LUCENE_POSTINGS_FORMAT.isEnabled()
98-
&& timeSeries == false ? Lucene101PostingsFormat.class : ES812PostingsFormat.class;
96+
Class<? extends PostingsFormat> expectedPostingsFormat = ES812PostingsFormat.class;
9997
assertThat(perFieldMapperCodec.getPostingsFormatForField("another_field"), instanceOf(expectedPostingsFormat));
10098
}
10199

@@ -110,9 +108,7 @@ public void testUseBloomFilterWithTimestampFieldEnabled() throws IOException {
110108
public void testUseBloomFilterWithTimestampFieldEnabled_noTimeSeriesMode() throws IOException {
111109
PerFieldFormatSupplier perFieldMapperCodec = createFormatSupplier(true, false, false);
112110
assertThat(perFieldMapperCodec.useBloomFilter("_id"), is(false));
113-
Class<? extends PostingsFormat> expectedPostingsFormat = PerFieldFormatSupplier.USE_DEFAULT_LUCENE_POSTINGS_FORMAT.isEnabled()
114-
? Lucene101PostingsFormat.class
115-
: ES812PostingsFormat.class;
111+
Class<? extends PostingsFormat> expectedPostingsFormat = ES812PostingsFormat.class;
116112
assertThat(perFieldMapperCodec.getPostingsFormatForField("_id"), instanceOf(expectedPostingsFormat));
117113
}
118114

0 commit comments

Comments
 (0)