[Test] Fix sporadic failure in MembershipActionTests

Rewrite test that require Version.V_5 constants.
This commit is contained in:
Jim Ferenczi 2018-08-24 18:40:04 +02:00
parent 6f1ee76443
commit 70030c18f1
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class MembershipActionTests extends ESTestCase {
}
if (minNodeVersion.onOrAfter(Version.V_7_0_0_alpha1)) {
Version oldMajor = randomFrom(allVersions().stream().filter(v -> v.major < 6).collect(Collectors.toList()));
Version oldMajor = Version.V_6_4_0.minimumCompatibilityVersion();
expectThrows(IllegalStateException.class, () -> MembershipAction.ensureMajorVersionBarrier(oldMajor, minNodeVersion));
}