Skip to content

Commit 1209e78

Browse files
committed
Update tsdb doc_values bwc test to mention version 1
1 parent 60ebfaa commit 1209e78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/org/elasticsearch/index/codec/tsdb/TsdbDocValueBwcTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public void testMixedIndex() throws Exception {
6565
testMixedIndex(oldCodec, newCodec);
6666
}
6767

68-
// TODO update Current to Version1 once version is incremented
69-
public void testMixedIndexDocValueVersion0ToCurrent() throws Exception {
68+
public void testMixedIndexDocValueVersion0ToVersion1() throws Exception {
7069
var oldCodec = TestUtil.alwaysDocValuesFormat(new TestES819TSDBDocValuesFormatVersion0());
71-
var newCodec = TestUtil.alwaysDocValuesFormat(new ES819TSDBDocValuesFormat());
70+
var compressionMode = ES819TSDBDocValuesFormatTests.randomBinaryCompressionMode();
71+
var newCodec = TestUtil.alwaysDocValuesFormat(new ES819TSDBDocValuesFormat(compressionMode));
7272
testMixedIndex(oldCodec, newCodec, this::assertVersion819, this::assertVersion819);
7373
}
7474

0 commit comments

Comments
 (0)