Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Downs <[email protected]>
  • Loading branch information
downsrob committed Apr 15, 2022
1 parent 18dc35d commit b0730ce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class ShrinkActionIT : IndexStateManagementRestTestCase() {
}
}

@Suppress("UNCHECKED_CAST")
fun `test allocation block picks correct node`() {
val logger = LogManager.getLogger(::ShrinkActionIT)
val nodes = getNodes()
Expand Down Expand Up @@ -394,7 +395,9 @@ class ShrinkActionIT : IndexStateManagementRestTestCase() {
WaitForShrinkStep.SUCCESS_MESSAGE,
getExplainManagedIndexMetaData(indexName).info?.get("message")
)
assertEquals("Write block setting was not reset after successful shrink", "false", getIndexBlocksWriteSetting(indexName))
val indexSettings = getIndexSettings(indexName) as Map<String, Map<String, Map<String, Any?>>>
val writeBlock = indexSettings[indexName]!!["settings"]!![IndexMetadata.SETTING_BLOCKS_WRITE] as String?
assertNull("Write block setting was not reset after successful shrink", writeBlock)
}
}
}
Expand Down

0 comments on commit b0730ce

Please sign in to comment.