Skip to content

Commit

Permalink
Removed policy from index to fix flaky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Au <[email protected]>
  • Loading branch information
Joshua152 committed Dec 18, 2023
1 parent 19796f0 commit 00b6bd3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() {
resp.asMap(), false
)
}

removePolicyFromIndex(indexName1)
removePolicyFromIndex(indexName2)
}

fun `test explain filter failed index`() {
Expand Down Expand Up @@ -601,6 +604,9 @@ class RestExplainActionIT : IndexStateManagementRestTestCase() {
resp.asMap(), false
)
}

removePolicyFromIndex(indexName1)
removePolicyFromIndex(indexName2)
}

@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 00b6bd3

Please sign in to comment.