diff --git a/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt b/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt index 5c91f9364..8a75e8923 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/resthandler/RestExplainActionIT.kt @@ -500,6 +500,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() { removePolicyFromIndex(indexName1) removePolicyFromIndex(indexName2) + + // wait for jobs to finish + Thread.sleep(1000) } fun `test explain filter failed index`() { @@ -607,6 +610,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() { removePolicyFromIndex(indexName1) removePolicyFromIndex(indexName2) + + // wait for jobs to finish + Thread.sleep(1000) } @Suppress("UNCHECKED_CAST") // Do assertion of the response map here so we don't have many places to do suppression.