Skip to content

Commit a928c58

Browse files
authored
Fix random limit in AsyncOperatorTests (#108289) (#108323)
Adjust the lower bound to include the case where the number of positions is zero. Closes #107847
1 parent 9094f79 commit a928c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/AsyncOperatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void doClose() {
127127
intermediateOperators.add(asyncOperator);
128128
final Iterator<Long> it;
129129
if (randomBoolean()) {
130-
int limit = between(1, ids.size());
130+
int limit = between(0, ids.size());
131131
it = ids.subList(0, limit).iterator();
132132
intermediateOperators.add(new LimitOperator(limit));
133133
} else {

0 commit comments

Comments
 (0)