Skip to content

Commit 897efad

Browse files
drop invalid chars from assertion string due to randomisation issue
1 parent bdf25b0 commit 897efad

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,12 +3233,7 @@ public void testInvalidPatternsWithIntermittentQuotes() {
32333233
var invalidIndexName = "foo" + randomInvalidChar + "bar";
32343234
var remoteIndexWithInvalidChar = quote(randomIdentifier() + ":" + invalidIndexName);
32353235
var query = "FROM " + randomIndex + "," + remoteIndexWithInvalidChar;
3236-
expectError(
3237-
query,
3238-
"Invalid index name ["
3239-
+ invalidIndexName
3240-
+ "], must not contain the following characters [' ','\"',',','/','<','>','?','\\','|']"
3241-
);
3236+
expectError(query, "Invalid index name [" + invalidIndexName + "], must not contain the following characters");
32423237
}
32433238

32443239
// Colon outside a quoted string should result in an ANTLR error: a comma is expected.

0 commit comments

Comments
 (0)