Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e678a3

Browse files
committedJun 22, 2024·
Fix Writable Warm test for festure flag disabled condition by changing exception type caught
Signed-off-by: Shreyansh Ray <rayshrey@amazon.com>
1 parent b42a50e commit 9e678a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testWritableWarmFeatureFlagDisabled() {
8080
try {
8181
prepareCreate(INDEX_NAME).setSettings(indexSettings).get();
8282
fail("Should have thrown Exception as setting should not be registered if Feature Flag is Disabled");
83-
} catch (SettingsException ex) {
83+
} catch (SettingsException | IllegalArgumentException ex) {
8484
assertEquals(
8585
"unknown setting ["
8686
+ IndexModule.INDEX_STORE_LOCALITY_SETTING.getKey()

0 commit comments

Comments
 (0)
Please sign in to comment.