lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject lucene-solr git commit: Fix TestBackwardsCompatibility.testAllVersionsTested to consider 5.5 as an expected version
Date Thu, 03 Mar 2016 18:30:59 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x e344ab1d0 -> 89a02361f


Fix TestBackwardsCompatibility.testAllVersionsTested to consider 5.5 as an expected version


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/89a02361
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/89a02361
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/89a02361

Branch: refs/heads/branch_6x
Commit: 89a02361fe5eb6c4ae84a1bf773b72658ecf2f44
Parents: e344ab1
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Fri Mar 4 00:00:37 2016 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Fri Mar 4 00:00:37 2016 +0530

----------------------------------------------------------------------
 .../lucene/index/TestBackwardsCompatibility.java  | 18 ------------------
 1 file changed, 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/89a02361/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
----------------------------------------------------------------------
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
index 57b8d2d..f8956d5 100644
--- a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
+++ b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
@@ -416,24 +416,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
       }
     }
 
-    // BEGIN TRUNK ONLY BLOCK
-    // on trunk, the last release of the prev major release is also untested
-    Version lastPrevMajorVersion = null;
-    for (java.lang.reflect.Field field : Version.class.getDeclaredFields()) {
-      if (Modifier.isStatic(field.getModifiers()) && field.getType() == Version.class)
{
-        Version v = (Version)field.get(Version.class);
-        Matcher constant = constantPattern.matcher(field.getName());
-        if (constant.matches() == false) continue;
-        if (v.major == Version.LATEST.major - 1 &&
-            (lastPrevMajorVersion == null || v.onOrAfter(lastPrevMajorVersion))) {
-          lastPrevMajorVersion = v;
-        }
-      }
-    }
-    assertNotNull(lastPrevMajorVersion);
-    expectedVersions.remove(lastPrevMajorVersion.toString() + "-cfs");
-    // END TRUNK ONLY BLOCK
-
     Collections.sort(expectedVersions);
 
     // find what versions we are testing


Mime
View raw message