Skip to content

Commit

Permalink
Added thread sleep after test to wait for jobs to finish
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Au <[email protected]>
  • Loading branch information
Joshua152 committed Dec 22, 2023
1 parent 00b6bd3 commit 3ae9a05
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 jobs 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 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.
Expand Down

0 comments on commit 3ae9a05

Please sign in to comment.