diff --git a/src/test/java/org/opensearch/knn/plugin/action/RestClearCacheHandlerIT.java b/src/test/java/org/opensearch/knn/plugin/action/RestClearCacheHandlerIT.java index e7b454ebb..2618519f2 100644 --- a/src/test/java/org/opensearch/knn/plugin/action/RestClearCacheHandlerIT.java +++ b/src/test/java/org/opensearch/knn/plugin/action/RestClearCacheHandlerIT.java @@ -25,7 +25,6 @@ public class RestClearCacheHandlerIT extends KNNRestTestCase { private static final String TEST_FIELD = "test-field"; private static final int DIMENSIONS = 2; - private static final String ALL_INDICES = "_all"; @SneakyThrows public void testNonExistentIndex() { @@ -81,7 +80,7 @@ public void testClearCacheMultipleIndices() { assertEquals(graphCountBefore + 2, getTotalGraphsInCache()); - clearCache(Arrays.asList(ALL_INDICES)); + clearCache(Arrays.asList(testIndex1, testIndex2)); assertEquals(graphCountBefore, getTotalGraphsInCache()); }