Skip to content

Commit

Permalink
add the comment to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkewwei committed Mar 21, 2024
1 parent 02679f8 commit c32ca4a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public static Collection<Object[]> parameters() {

@BeforeClass
public static void createRandomClusterSetting() {
// Lower bound can't be small(such as 60), simpleQueryStringQuery("foo Bar 19 127.0.0.1") in testDocWithAllTypes
// will create many clauses of BooleanClause, In that way, it will throw too_many_nested_clauses exception.
// So we need to set a higher bound to avoid failures(such as 80).
CLUSTER_MAX_CLAUSE_COUNT = randomIntBetween(80, 100);
}

Expand Down

0 comments on commit c32ca4a

Please sign in to comment.