diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java index 078741543f25..77dae22b5539 100644 --- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java +++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java @@ -850,7 +850,7 @@ public void testAddOldIndexesReader() throws IOException { } public void testFailOpenOldIndex() throws IOException { - assumeFalse("doesn't work on current index", version.equals(Version.LATEST)); + assumeFalse("doesn't work on current index", version.major == Version.LATEST.major); IndexCommit commit = DirectoryReader.listCommits(directory).get(0); IndexFormatTooOldException ex = expectThrows(