[Rollup] Fix duplicate field names in test
This commit ensures that random field names do not clash with the explicit field names
set by the tests.
Closes
@@ -94,7 +94,7 @@ public class ConfigTestHelpers {
if (ESTestCase.randomBoolean()) {
dateHistoBuilder.setDelay(new DateHistogramInterval(randomPositiveTimeValue()));
}
- dateHistoBuilder.setField(ESTestCase.randomAlphaOfLengthBetween(1, 10 ));
+ dateHistoBuilder.setField(ESTestCase.randomAlphaOfLengthBetween(5, 10));
return dateHistoBuilder;
}
@@ -113,7 +113,7 @@ public class ConfigTestHelpers {
public static List<String> getFields() {
return IntStream.range(0, ESTestCase.randomIntBetween(1, 10))
- .mapToObj(n -> ESTestCase.randomAlphaOfLengthBetween(1,10))
+ .mapToObj(n -> ESTestCase.randomAlphaOfLengthBetween(5, 10))
.collect(Collectors.toList());
}
