Skip to content

Commit 4529a12

Browse files
Fix an issue where PushQueriesIT.testLike() fails if an empty string is randomly generated as input
1 parent f48a3c3 commit 4529a12

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/PushQueriesIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void testCaseInsensitiveEquality() throws IOException {
240240
}
241241

242242
public void testLike() throws IOException {
243-
String value = "v".repeat(between(0, 256));
243+
String value = "v".repeat(between(1, 256));
244244
String esqlQuery = """
245245
FROM test
246246
| WHERE test like "%value*"
@@ -258,7 +258,7 @@ public void testLike() throws IOException {
258258
}
259259

260260
public void testLikeList() throws IOException {
261-
String value = "v".repeat(between(0, 256));
261+
String value = "v".repeat(between(1, 256));
262262
String esqlQuery = """
263263
FROM test
264264
| WHERE test like ("%value*", "abc*")

0 commit comments

Comments
 (0)