Skip to content

Commit 1d7290c

Browse files
authored
ESQL: Fix test error (elastic#143537)
In elastic#133479 I wrote a test for tagged queries. That test had an error one in 10,000 times where it chose 0 matching documents. Ooops. This makes sure we always produce a matching document. Closes elastic#143020
1 parent 35cbe12 commit 1d7290c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ public void testHashLookup() {
369369
}
370370

371371
public void testPushRoundToCountToQuery() throws IOException {
372-
int firstGroupDocs = randomIntBetween(0, 10_000);
373-
int secondGroupDocs = randomIntBetween(0, 10_000);
374-
int thirdGroupDocs = randomIntBetween(0, 10_000);
372+
int firstGroupDocs = randomIntBetween(1, 10_000);
373+
int secondGroupDocs = randomIntBetween(1, 10_000);
374+
int thirdGroupDocs = randomIntBetween(1, 10_000);
375375

376376
CheckedConsumer<DirectoryReader, IOException> verifier = reader -> {
377377
Query firstGroupQuery = LongPoint.newRangeQuery("g", Long.MIN_VALUE, 99);

0 commit comments

Comments
 (0)