Skip to content

Commit 61ac240

Browse files
committed
Use Booleans.parseBoolean(...., false) in case setting is absent
1 parent 945ae4a commit 61ac240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/lucene-index-compatibility/src/javaRestTest/java/org/elasticsearch/lucene/AbstractIndexCompatibilityTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected static List<ClusterBlock> indexBlocks(String indexName) throws Excepti
331331
@SuppressWarnings("unchecked")
332332
protected static void assertIndexSetting(String indexName, Setting<?> setting, Matcher<Boolean> matcher) throws Exception {
333333
var indexSettings = getIndexSettingsAsMap(indexName);
334-
assertThat(Booleans.parseBoolean((String) indexSettings.get(setting.getKey())), matcher);
334+
assertThat(Booleans.parseBoolean((String) indexSettings.get(setting.getKey()), false), matcher);
335335
}
336336

337337
protected static ResponseException expectUpdateIndexSettingsThrows(String indexName, Settings.Builder settings) {

0 commit comments

Comments
 (0)