[TEST] Upgrade test can only run if major or minor version differs
This commit is contained in:
parent
cd7c6cc47c
commit
67394aad81
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue