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 078741543f2..77dae22b553 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 class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestB } 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(