Skip to content

Commit

Permalink
Fix Writable Warm test for festure flag disabled condition by changin…
Browse files Browse the repository at this point in the history
…g exception type caught

Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
  • Loading branch information
rayshrey committed Jun 22, 2024
1 parent b42a50e commit 9e678a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9e678a3

Please sign in to comment.