Skip to content

Commit 2e248a7

Browse files
committed
Merge branch '6.x' into ccr-6.x
* 6.x: Avoid randomization bug in FeatureAwareTests
2 parents a98e8f7 + 1eede11 commit 2e248a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/cluster/FeatureAwareTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Optional<String> getRequiredFeature() {
107107
}
108108

109109
public void testVersion() {
110-
final Version version = VersionUtils.randomVersion(random());
110+
final Version version = randomValueOtherThan(VersionUtils.getFirstVersion(), () -> VersionUtils.randomVersion(random()));
111111
for (final Custom custom : Arrays.asList(new NoRequiredFeatureCustom(version), new RequiredFeatureCustom(version))) {
112112
{
113113
final BytesStreamOutput out = new BytesStreamOutput();

0 commit comments

Comments
 (0)