diff --git a/server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java b/server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java index a51bd6b20fff0..08eef8dc8c945 100644 --- a/server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java @@ -80,7 +80,7 @@ public void testWritableWarmFeatureFlagDisabled() { try { prepareCreate(INDEX_NAME).setSettings(indexSettings).get(); fail("Should have thrown Exception as setting should not be registered if Feature Flag is Disabled"); - } catch (SettingsException ex) { + } catch (SettingsException | IllegalArgumentException ex) { assertEquals( "unknown setting [" + IndexModule.INDEX_STORE_LOCALITY_SETTING.getKey()