Skip to content

Commit

Permalink
Increase the sample space for random inner hits name generator (elast…
Browse files Browse the repository at this point in the history
…ic#42057)

This commits changes the minimum length for inner hits
name to avoid name collision which sometimes failed the
test.
  • Loading branch information
bizybot authored and Yogesh Gaikwad committed May 10, 2019
1 parent db8fe1d commit f3bd3f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static InnerHitBuilder randomNestedInnerHits() {
}
public static InnerHitBuilder randomInnerHits() {
InnerHitBuilder innerHits = new InnerHitBuilder();
innerHits.setName(randomAlphaOfLengthBetween(1, 16));
innerHits.setName(randomAlphaOfLengthBetween(5, 16));
innerHits.setFrom(randomIntBetween(0, 32));
innerHits.setSize(randomIntBetween(0, 32));
innerHits.setExplain(randomBoolean());
Expand Down

0 comments on commit f3bd3f7

Please sign in to comment.