Skip to content

Commit

Permalink
Merge branch '6.x' into ccr-6.x
Browse files Browse the repository at this point in the history
* 6.x:
  Avoid randomization bug in FeatureAwareTests
  • Loading branch information
dnhatn committed Jun 2, 2018
2 parents a98e8f7 + 1eede11 commit 2e248a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Optional<String> getRequiredFeature() {
}

public void testVersion() {
final Version version = VersionUtils.randomVersion(random());
final Version version = randomValueOtherThan(VersionUtils.getFirstVersion(), () -> VersionUtils.randomVersion(random()));
for (final Custom custom : Arrays.asList(new NoRequiredFeatureCustom(version), new RequiredFeatureCustom(version))) {
{
final BytesStreamOutput out = new BytesStreamOutput();
Expand Down

0 comments on commit 2e248a7

Please sign in to comment.