Skip to content

Commit e3e35f7

Browse files
nik9000elasticsearchmachine
authored and
elasticsearchmachine
committed
Fix aggs test failures (again) (elastic#74965)
The tests for the debugging information in the filters aggregation where too specific for the kind of randomization we run with. We mostly fixed them in elastic#74750 by replacing `equalTo(1)` with `greaterThanOrEqualTo(1)`. But we missed a spot. In all fairness, we ran the test a couple thousand times and it didn't fail. But letting the ES build chew on it gets many many many thousands of executions over a month. So it found the spot. This performs one additional `equalTo(1)` to `greaterThanOrEqualTo(1)` replacement. Closes elastic#74936
1 parent dbfaeaa commit e3e35f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public void testMatchAll() throws IOException {
481481
matchesList().item(
482482
matchesMap().entry("query", "*:*")
483483
.entry("specialized_for", "match_all")
484-
.entry("results_from_metadata", 1)
484+
.entry("results_from_metadata", greaterThanOrEqualTo(1))
485485
)
486486
)
487487
)

0 commit comments

Comments
 (0)