Skip to content

Commit 58d1b98

Browse files
committed
test fixes
1 parent 5d9056e commit 58d1b98

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testBasicEsql() throws IOException {
8181
Map<String, Object> result = runEsql(builder);
8282

8383
Map<String, String> colA = Map.of("name", "avg(value)", "type", "double");
84-
assertResultMap(result, colA, List.of(List.of(499.5d)));
84+
assertResultMap(result, List.of(colA), List.of(List.of(499.5d)));
8585
assertTrue(result.containsKey("took"));
8686
}
8787

@@ -116,7 +116,7 @@ public void testDoNotLogWithInfo() throws IOException {
116116
RequestObjectBuilder builder = requestObjectBuilder().query("ROW DO_NOT_LOG_ME = 1");
117117
Map<String, Object> result = runEsql(builder);
118118
Map<String, String> colA = Map.of("name", "DO_NOT_LOG_ME", "type", "integer");
119-
assertResultMap(result, colA, List.of(List.of(1)));
119+
assertResultMap(result, List.of(colA), List.of(List.of(1)));
120120
for (int i = 0; i < cluster.getNumNodes(); i++) {
121121
try (InputStream log = cluster.getNodeLog(i, LogType.SERVER)) {
122122
Streams.readAllLines(log, line -> assertThat(line, not(containsString("DO_NOT_LOG_ME"))));
@@ -133,7 +133,7 @@ public void testDoLogWithDebug() throws IOException {
133133
RequestObjectBuilder builder = requestObjectBuilder().query("ROW DO_LOG_ME = 1");
134134
Map<String, Object> result = runEsql(builder);
135135
Map<String, String> colA = Map.of("name", "DO_LOG_ME", "type", "integer");
136-
assertResultMap(result, colA, List.of(List.of(1)));
136+
assertResultMap(result, List.of(colA), List.of(List.of(1)));
137137
boolean[] found = new boolean[] { false };
138138
for (int i = 0; i < cluster.getNumNodes(); i++) {
139139
try (InputStream log = cluster.getNodeLog(i, LogType.SERVER)) {

0 commit comments

Comments
 (0)