From 9e678a3e0f4b89bc2059b4184b37bdda7a97afe5 Mon Sep 17 00:00:00 2001 From: Shreyansh Ray Date: Sat, 22 Jun 2024 23:06:51 +0530 Subject: [PATCH] Fix Writable Warm test for festure flag disabled condition by changing exception type caught Signed-off-by: Shreyansh Ray --- .../java/org/opensearch/remotestore/WritableWarmIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()