You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2024/02/13 10:00:25 UTC
(lucene) branch main updated: Fix logic to always exclude latest minor from previous major.
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 6f026d7c36c Fix logic to always exclude latest minor from previous major.
6f026d7c36c is described below
commit 6f026d7c36c43f4571af8ffdf05caec83bf941db
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Tue Feb 13 10:55:46 2024 +0100
Fix logic to always exclude latest minor from previous major.
---
.../lucene/backward_index/BackwardsCompatibilityTestBase.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java
index 5081f164dfe..b238f952132 100644
--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java
+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java
@@ -186,11 +186,8 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {
// The latest version from the current major is always under development.
assertTrue(currentReleasedVersions.remove(Version.LATEST));
- if (Version.LATEST.minor == 0 && Version.LATEST.bugfix == 0) {
- // If the current branch points to the next major, then the latest minor from the previous
- // major is also under development.
- assertTrue(currentReleasedVersions.remove(LATEST_PREVIOUS_MAJOR));
- }
+ // The latest minor from the previous major is also under development.
+ assertTrue(currentReleasedVersions.remove(LATEST_PREVIOUS_MAJOR));
// In addition to those, we may need to remove one more version in case a release is in
// progress, and the version constant has been added but backward-compatibility indexes have not