diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestMaxPositionInOldIndex.java b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestMaxPositionInOldIndex.java index 87625d20674..3608b8067e7 100644 --- a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestMaxPositionInOldIndex.java +++ b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestMaxPositionInOldIndex.java @@ -82,7 +82,7 @@ public class BuildMaxPositionIndex { BaseDirectoryWrapper dir = newFSDirectory(path); dir.setCheckIndexOnClose(false); RuntimeException expected = expectThrows(RuntimeException.class, () -> { - TestUtil.checkIndex(dir, false, true); + TestUtil.checkIndex(dir, false, true, null); }); assertTrue(expected.getMessage().contains("pos 2147483647 > IndexWriter.MAX_POSITION=2147483519"));