Skip to content

Commit

Permalink
Fix FullClusterRestartIT using lenient booleans with 6.0
Browse files Browse the repository at this point in the history
This fixes a test failure where `FullClusterRestartIT` would mistakenly use
lenient booleans for a 6.0 version of ES, which were then rejected, causing test
failures.

See: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.x+intake/572
  • Loading branch information
dakrone committed Nov 1, 2017
1 parent f167b23 commit db847df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
public class FullClusterRestartIT extends ESRestTestCase {
private final boolean runningAgainstOldCluster = Booleans.parseBoolean(System.getProperty("tests.is_old_cluster"));
private final Version oldClusterVersion = Version.fromString(System.getProperty("tests.old_cluster_version"));
private final boolean supportsLenientBooleans = oldClusterVersion.onOrAfter(Version.V_6_0_0_alpha1);
private final boolean supportsLenientBooleans = oldClusterVersion.before(Version.V_6_0_0_alpha1);
private static final Version VERSION_5_1_0_UNRELEASED = Version.fromString("5.1.0");

private String index;
Expand Down

0 comments on commit db847df

Please sign in to comment.