Skip to content

Commit

Permalink
Fix Writable Warm test for feature 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 24, 2024
1 parent b42a50e commit e6c3b57
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 e6c3b57

Please sign in to comment.