From 710572d798d4a9ec3c48bf93a522b8210c4d108b Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 27 Aug 2009 17:05:53 +0000 Subject: [PATCH] fix TestCheckIndex to accept either 2.9 or 2.9-dev as valid, from common-build.xml git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@808530 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/index/TestCheckIndex.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/org/apache/lucene/index/TestCheckIndex.java b/src/test/org/apache/lucene/index/TestCheckIndex.java index add27955b73..52fb5e4a3d4 100644 --- a/src/test/org/apache/lucene/index/TestCheckIndex.java +++ b/src/test/org/apache/lucene/index/TestCheckIndex.java @@ -93,7 +93,9 @@ public class TestCheckIndex extends LuceneTestCase { public void testLuceneConstantVersion() throws IOException { // common-build.xml sets lucene.version final String version = System.getProperty("lucene.version"); - assertEquals(version, Constants.LUCENE_MAIN_VERSION+"-dev"); + assertNotNull(version); + assertTrue(version.equals(Constants.LUCENE_MAIN_VERSION+"-dev") || + version.equals(Constants.LUCENE_MAIN_VERSION)); assertTrue(Constants.LUCENE_VERSION.startsWith(version)); } }