Skip to content

Commit 10fdfbb

Browse files
authored
Adjusted testChunkResponseSizeColumnar to always expected the overall took time in the async response (#117673) (#117674)
1 parent fff6da1 commit 10fdfbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/action/EsqlQueryResponseTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,15 +519,14 @@ static EsqlQueryResponse fromXContent(XContentParser parser) {
519519
}
520520

521521
public void testChunkResponseSizeColumnar() {
522+
int sizeClusterDetails = 14;
522523
try (EsqlQueryResponse resp = randomResponse(true, null)) {
523-
int sizeClusterDetails = 14;
524524
int columnCount = resp.pages().get(0).getBlockCount();
525525
int bodySize = resp.pages().stream().mapToInt(p -> p.getPositionCount() * p.getBlockCount()).sum() + columnCount * 2;
526526
assertChunkCount(resp, r -> 5 + sizeClusterDetails + bodySize);
527527
}
528528

529529
try (EsqlQueryResponse resp = randomResponseAsync(true, null, true)) {
530-
int sizeClusterDetails = resp.isRunning() ? 13 : 14; // overall took time not present when is_running=true
531530
int columnCount = resp.pages().get(0).getBlockCount();
532531
int bodySize = resp.pages().stream().mapToInt(p -> p.getPositionCount() * p.getBlockCount()).sum() + columnCount * 2;
533532
assertChunkCount(resp, r -> 7 + sizeClusterDetails + bodySize); // is_running

0 commit comments

Comments
 (0)