Skip to content

Commit 190f7d7

Browse files
committed
Fix a test error.
1 parent 89cb900 commit 190f7d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/inference/completion/CompletionOperatorTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ private void assertCompletionResults(Page inputPage, Page resultPage) {
7272
int valueIndex = inputBlock.getFirstValueIndex(curPos);
7373
while (valueIndex < inputBlock.getFirstValueIndex(curPos) + inputBlock.getValueCount(curPos)) {
7474
scratch = inputBlock.getBytesRef(valueIndex, scratch);
75-
inputBuilder.append(scratch.utf8ToString()).append("\n");
75+
inputBuilder.append(scratch.utf8ToString());
76+
if (valueIndex < inputBlock.getValueCount(curPos) - 1) {
77+
inputBuilder.append("\n");
78+
}
7679
valueIndex++;
7780
}
7881
scratch = resultBlock.getBytesRef(resultBlock.getFirstValueIndex(curPos), scratch);

0 commit comments

Comments
 (0)