[TEST] Upgrade test can only run if major or minor version differs

This commit is contained in:
Simon Willnauer 2014-10-29 20:33:50 +01:00
parent cd7c6cc47c
commit 67394aad81
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ public class UpgradeTest extends ElasticsearchBackwardsCompatIntegrationTest {
@BeforeClass
public static void checkUpgradeVersion() {
boolean luceneVersionMatches = globalCompatibilityVersion().luceneVersion.equals(Version.CURRENT.luceneVersion);
final boolean luceneVersionMatches = (globalCompatibilityVersion().luceneVersion.major == Version.CURRENT.luceneVersion.major
&& globalCompatibilityVersion().luceneVersion.minor == Version.CURRENT.luceneVersion.minor);
assumeFalse("lucene versions must be different to run upgrade test", luceneVersionMatches);
}