From 738c5aa612bb50e94c88e548442518d74bf4f633 Mon Sep 17 00:00:00 2001 From: Kostas Krikellas Date: Tue, 22 Oct 2024 14:47:51 +0300 Subject: [PATCH] fix flakiness --- .../org/elasticsearch/index/IndexSettingProviderTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/index/IndexSettingProviderTests.java b/server/src/test/java/org/elasticsearch/index/IndexSettingProviderTests.java index 1b68faa1eaebf..ac940e66e7633 100644 --- a/server/src/test/java/org/elasticsearch/index/IndexSettingProviderTests.java +++ b/server/src/test/java/org/elasticsearch/index/IndexSettingProviderTests.java @@ -38,10 +38,11 @@ public void testIndexCreation() throws Exception { assertTrue(indexService.getIndexSettings().getSettings().hasValue("index.refresh_interval")); assertEquals("100", indexService.getIndexSettings().getSettings().get("index.mapping.depth.limit")); + INDEX_SETTING_OVERRULING.set(false); INDEX_SETTING_PROVIDER2_ENABLED.set(true); var e = expectThrows(IllegalArgumentException.class, () -> createIndex("my-index4", settings)); assertEquals( - "additional index setting [index.mapping.depth.limit] added by [TestIndexSettingsProvider] is already present", + "additional index setting [index.refresh_interval] added by [TestIndexSettingsProvider] is already present", e.getMessage() ); }