Skip to content

Commit b55facd

Browse files
author
Hendrik Muhs
committed
fix Zero or negative time interval not supported
1 parent 1d108a6 commit b55facd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/transform/transforms/pivot/hlrc/DateHistogramGroupSourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static DateHistogramGroupSource randomDateHistogramGroupSource() {
7474
dateHistogramGroupSource = new DateHistogramGroupSource(
7575
field,
7676
scriptConfig,
77-
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomPositiveTimeValue())),
77+
new DateHistogramGroupSource.FixedInterval(new DateHistogramInterval(randomTimeValue(1, 100, "d", "h", "ms", "s", "m"))),
7878
randomBoolean() ? randomZone() : null
7979
);
8080
} else {

0 commit comments

Comments
 (0)