Skip to content

Commit

Permalink
[CI] FileSettingsServiceIT testErrorCanRecoverOnRestart failing (elas…
Browse files Browse the repository at this point in the history
…tic#116895) (elastic#117511)

Fixes flaky test FileSettingsServiceIT.testErrorCanRecoverOnRestart
Fixes elastic#116895
  • Loading branch information
alexey-ivanov-es committed Nov 26, 2024
1 parent c5fc9a1 commit 627f796
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public void testErrorCanRecoverOnRestart() throws Exception {

FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

assertTrue(masterFileSettingsService.watching());
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));
assertFalse(dataFileSettingsService.watching());

writeJSONFile(masterNode, testErrorJSON, logger, versionCounter.incrementAndGet());
Expand Down Expand Up @@ -434,7 +434,7 @@ public void testNewErrorOnRestartReprocessing() throws Exception {

FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

assertTrue(masterFileSettingsService.watching());
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));
assertFalse(dataFileSettingsService.watching());

writeJSONFile(masterNode, testErrorJSON, logger, versionCounter.incrementAndGet());
Expand Down

0 comments on commit 627f796

Please sign in to comment.