Skip to content

Commit

Permalink
fix flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es committed Oct 22, 2024
1 parent 1b359f0 commit 738c5aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 738c5aa

Please sign in to comment.