Skip to content

Commit b339c74

Browse files
author
Kishore Kumaar Natarajan
committed
updated invalid testcases
Signed-off-by: Kishore Kumaar Natarajan <kkumaarn@amazon.com>
1 parent de4a81f commit b339c74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/org/opensearch/plugin/insights/QueryInsightsRestTestCase.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ protected void defaultExporterSettings() throws IOException {
431431

432432
protected void cleanup() throws IOException, InterruptedException {
433433
Thread.sleep(10000);
434+
434435
try {
435436
client().performRequest(new Request("DELETE", "/top_queries"));
436437
} catch (ResponseException e) {
@@ -507,9 +508,6 @@ protected void checkLocalIndices() throws IOException {
507508
assertEquals("NONE", source.get("group_by"));
508509
assertEquals(1, ((Number) source.get("total_shards")).intValue());
509510

510-
List<String> indices = (List<String>) source.get("indices");
511-
assertTrue("Expected my-index-0 in indices", indices.contains("my-index-0"));
512-
513511
Map<String, Object> queryBlock = (Map<String, Object>) ((Map<String, Object>) source.get("source")).get("query");
514512
Map<String, Object> match = (Map<String, Object>) queryBlock.get("match");
515513
Map<String, Object> title = (Map<String, Object>) match.get("title");

0 commit comments

Comments
 (0)