fix Zero or negative time interval not supported

This commit is contained in:
Hendrik Muhs 2020-03-26 22:31:46 +01:00
parent b5d04e4c55
commit 5f007b7cb1

View File

@ -74,7 +74,7 @@ public class DateHistogramGroupSourceTests extends AbstractResponseTestCase<
dateHistogramGroupSource = new DateHistogramGroupSource(
field,
scriptConfig,
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomPositiveTimeValue())),
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomTimeValue(1, 100, "d", "h", "ms", "s", "m"))),
randomBoolean() ? randomZone() : null
);
} else {