Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void testSettingsApplied() throws Exception {

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

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

writeJSONFile(masterNode, testJSON, logger, versionCounter.incrementAndGet());
Expand All @@ -279,7 +279,7 @@ public void testSettingsAppliedOnStart() throws Exception {

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

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

assertClusterStateSaveOK(savedClusterState.v1(), savedClusterState.v2(), "50mb");
Expand Down Expand Up @@ -374,7 +374,7 @@ public void testErrorSaved() 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 @@ -470,7 +470,7 @@ public void testSettingsAppliedOnMasterReElection() throws Exception {
var savedClusterState = setupClusterStateListener(masterNode);
FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, masterNode);

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

writeJSONFile(masterNode, testJSON, logger, versionCounter.incrementAndGet());
assertClusterStateSaveOK(savedClusterState.v1(), savedClusterState.v2(), "50mb");
Expand Down