Skip to content

Commit 4715c50

Browse files
committed
update
1 parent 014f0b0 commit 4715c50

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/IndexResolutionIT.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,24 +199,18 @@ public void testUnavailableIndex() {
199199
}
200200

201201
public void testPartialResolution() {
202-
assertAcked(client().admin().indices().prepareCreate("index-1"));
203-
assertAcked(client().admin().indices().prepareCreate("index-2"));
204-
indexRandom(true, "index-2", 10);
202+
assertAcked(client().admin().indices().prepareCreate("data"));
203+
indexRandom(true, "data", 10);
205204

206205
expectThrows(
207206
VerificationException.class,
208-
containsString("Unknown index [nonexisting-1]"), // fails when present index is empty
209-
() -> run(syncEsqlQueryRequest().query("FROM index-1,nonexisting-1"))
210-
);
211-
expectThrows(
212-
VerificationException.class,
213-
containsString("Unknown index [nonexisting-1]"), // fails when present index is non-empty
214-
() -> run(syncEsqlQueryRequest().query("FROM index-2,nonexisting-1"))
207+
containsString("Unknown index [nonexisting-1]"),
208+
() -> run(syncEsqlQueryRequest().query("FROM data,nonexisting-1"))
215209
);
216210
expectThrows(
217211
VerificationException.class,
218212
containsString("Unknown index [nonexisting-1]"), // only the first missing index is reported
219-
() -> run(syncEsqlQueryRequest().query("FROM index-2,nonexisting-1,nonexisting-2"))
213+
() -> run(syncEsqlQueryRequest().query("FROM data,nonexisting-1,nonexisting-2"))
220214
);
221215
}
222216

0 commit comments

Comments
 (0)