Skip to content

Apache Lucene open-source search software

Ensure test is only run on the previous major

Simon Willnauer1a6932f0ead6
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(