Skip to content

Commit 0469477

Browse files
authored
Increase the sample space for random inner hits name generator (#42057) (#42076)
This commits changes the minimum length for inner hits name to avoid name collision which sometimes failed the test.
1 parent bb3dddd commit 0469477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/index/query/InnerHitBuilderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static InnerHitBuilder randomNestedInnerHits() {
146146
}
147147
public static InnerHitBuilder randomInnerHits() {
148148
InnerHitBuilder innerHits = new InnerHitBuilder();
149-
innerHits.setName(randomAlphaOfLengthBetween(1, 16));
149+
innerHits.setName(randomAlphaOfLengthBetween(5, 16));
150150
innerHits.setFrom(randomIntBetween(0, 32));
151151
innerHits.setSize(randomIntBetween(0, 32));
152152
innerHits.setExplain(randomBoolean());

0 commit comments

Comments
 (0)