Skip to content

Commit 8363b70

Browse files
Update x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java
Co-authored-by: Andrei Stefan <[email protected]>
1 parent 1a43029 commit 8363b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3199,7 +3199,7 @@ public void testInvalidPatternsWithIntermittentQuotes() {
31993199
// Select an invalid char to sneak in.
32003200
// Note: some chars like '|' and '"' are excluded to generate a proper invalid name.
32013201
char[] invalidChars = { ' ', '/', '<', '>', '?' };
3202-
var randomInvalidChar = invalidChars[randomIntBetween(0, invalidChars.length - 1)];
3202+
var randomInvalidChar = randomFrom(invalidChars);
32033203

32043204
// Construct the new invalid index pattern.
32053205
var remoteIndexWithInvalidChar = quote(randomIdentifier() + ":" + "foo" + randomInvalidChar + "bar");

0 commit comments

Comments
 (0)