We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99aa992 commit 79f4a05Copy full SHA for 79f4a05
src/test/kotlin/org/opensearch/indexmanagement/transform/resthandler/RestDeleteTransformActionIT.kt
@@ -81,7 +81,7 @@ class RestDeleteTransformActionIT : TransformRestTestCase() {
81
@Throws(Exception::class)
82
fun `test deleting a transform that doesn't exist and config index doesn't exist`() {
83
try {
84
- deleteIndex(INDEX_MANAGEMENT_INDEX)
+ if (indexExists(INDEX_MANAGEMENT_INDEX)) deleteIndex(INDEX_MANAGEMENT_INDEX)
85
val res = client().makeRequest("DELETE", "$TRANSFORM_BASE_URI/foobarbaz")
86
fail("expected 404 ResponseException: ${res.asMap()}")
87
} catch (e: ResponseException) {
0 commit comments