Skip to content

Commit 5368439

Browse files
committed
Test: Fix filter assertion
Forces a test to use only a single shard so the assertion about the aggregation profiler results are correct. Without this the test fails randomly but very rarely. We have to use multiple shards (seeded random 10% choice) and we have to land all of the documents on one shard (unseeded random 3.2%) and that shard has to be the second shard in the list (unseeded random 50%). That works out to about 1.6% chance with an appropriate seed - .16% without it.
1 parent fca96bf commit 5368439

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/370_doc_count_field.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ setup:
151151
"Test filters agg with doc_count":
152152
- skip:
153153
version: " - 7.11.1"
154+
features: default_shards
154155
reason: "fixed in 7.11.2"
155156
- do:
156157
search:

0 commit comments

Comments
 (0)