Skip to content

Commit

Permalink
Ensure test is only run on the previous major
Browse files Browse the repository at this point in the history
Relates to #13046
  • Loading branch information
s1monw committed Jan 31, 2024
1 parent 8d9290c commit 1a6932f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1a6932f

Please sign in to comment.