Skip to content

Commit

Permalink
Sleep thread to allow jobs to finish (opensearch-project#1066)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Au <[email protected]>
  • Loading branch information
Joshua152 authored Jan 4, 2024
1 parent 5aeed27 commit b8f2691
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() {

removePolicyFromIndex(indexName1)
removePolicyFromIndex(indexName2)

// wait for job to finish
Thread.sleep(1000)
}

fun `test explain filter failed index`() {
Expand Down Expand Up @@ -607,6 +610,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() {

removePolicyFromIndex(indexName1)
removePolicyFromIndex(indexName2)

// wait for job 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.
Expand Down

0 comments on commit b8f2691

Please sign in to comment.