Ensure test is only run on the previous major

Relates to #13046
This commit is contained in:
Simon Willnauer 2024-01-31 16:11:17 +01:00
parent 8d9290ca36
commit 1a6932f0ea
1 changed files with 1 additions and 1 deletions

View File

@ -850,7 +850,7 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestB
} }
public void testFailOpenOldIndex() 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); IndexCommit commit = DirectoryReader.listCommits(directory).get(0);
IndexFormatTooOldException ex = IndexFormatTooOldException ex =
expectThrows( expectThrows(