Skip to content

Commit 09a50e5

Browse files
authored
ESQL: Weaken test assertion (#114336) (#114351)
Weaken the assertion when testing breakers: it's ok to break while building a block in addition to topn.
1 parent 67ce8bd commit 09a50e5

File tree

1 file changed

+1
-1
lines changed
  • test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack

1 file changed

+1
-1
lines changed

test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public void testSortByManyLongsTooMuchMemoryAsync() throws IOException {
166166
"error",
167167
matchesMap().extraOk()
168168
.entry("bytes_wanted", greaterThan(1000))
169-
.entry("reason", matchesRegex("\\[request] Data too large, data for \\[topn] would .+"))
169+
.entry("reason", matchesRegex("\\[request] Data too large, data for \\[(topn|esql_block_factory)] would .+"))
170170
.entry("durability", "TRANSIENT")
171171
.entry("type", "circuit_breaking_exception")
172172
.entry("bytes_limit", greaterThan(1000))

0 commit comments

Comments
 (0)