Skip to content

Commit db32bea

Browse files
committed
#26320: Reset default setting after test
1 parent 9a73973 commit db32bea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/test/java/org/elasticsearch/index/query/SimpleQueryStringBuilderTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,11 @@ public void testDefaultField() throws Exception {
561561
), 1.0f
562562
);
563563
assertEquals(expected, query);
564+
// Reset the default value
565+
context.getIndexSettings().updateIndexMetaData(
566+
newIndexMeta("index",
567+
context.getIndexSettings().getSettings(), Settings.builder().putArray("index.query.default_field", "*").build())
568+
);
564569
}
565570

566571
private static IndexMetaData newIndexMeta(String name, Settings oldIndexSettings, Settings indexSettings) {

0 commit comments

Comments
 (0)