@@ -233,7 +233,7 @@ public void testInitialFileError() throws Exception {
233233 verify (fileSettingsService , times (1 )).processFile (eq (watchedFile ), eq (true ));
234234 verify (controller , times (1 )).process (any (), any (XContentParser .class ), eq (ReservedStateVersionCheck .HIGHER_OR_SAME_VERSION ), any ());
235235
236- assertEquals (YELLOW , healthIndicatorService .calculate ( false , null ).status ());
236+ assertEquals (YELLOW , healthIndicatorService .calculateFromCurrentInfo ( ).status ());
237237 verify (healthIndicatorService , times (1 )).changeOccurred ();
238238 verify (healthIndicatorService , times (1 )).failureOccurred (argThat (s -> s .startsWith (IllegalStateException .class .getName ())));
239239 }
@@ -268,7 +268,7 @@ public void testInitialFileWorks() throws Exception {
268268 verify (fileSettingsService , times (1 )).processFile (eq (watchedFile ), eq (true ));
269269 verify (controller , times (1 )).process (any (), any (XContentParser .class ), eq (ReservedStateVersionCheck .HIGHER_OR_SAME_VERSION ), any ());
270270
271- assertEquals (GREEN , healthIndicatorService .calculate ( false , null ).status ());
271+ assertEquals (GREEN , healthIndicatorService .calculateFromCurrentInfo ( ).status ());
272272 verify (healthIndicatorService , times (1 )).changeOccurred ();
273273 verify (healthIndicatorService , times (1 )).successOccurred ();
274274 }
@@ -323,7 +323,7 @@ public void testProcessFileChanges() throws Exception {
323323 verify (fileSettingsService , times (1 )).processFile (eq (watchedFile ), eq (false ));
324324 verify (controller , times (1 )).process (any (), any (XContentParser .class ), eq (ReservedStateVersionCheck .HIGHER_VERSION_ONLY ), any ());
325325
326- assertEquals (GREEN , healthIndicatorService .calculate ( false , null ).status ());
326+ assertEquals (GREEN , healthIndicatorService .calculateFromCurrentInfo ( ).status ());
327327 verify (healthIndicatorService , times (2 )).changeOccurred ();
328328 verify (healthIndicatorService , times (2 )).successOccurred ();
329329 }
@@ -367,7 +367,7 @@ public void testInvalidJSON() throws Exception {
367367 argThat (e -> unwrapException (e ) instanceof XContentParseException )
368368 );
369369
370- assertEquals (YELLOW , healthIndicatorService .calculate ( false , null ).status ());
370+ assertEquals (YELLOW , healthIndicatorService .calculateFromCurrentInfo ( ).status ());
371371 verify (healthIndicatorService , Mockito .atLeast (1 )).failureOccurred (contains (XContentParseException .class .getName ()));
372372 }
373373
@@ -434,7 +434,7 @@ public void testStopWorksInMiddleOfProcessing() throws Exception {
434434 fileSettingsService .close ();
435435
436436 // When the service is stopped, the health indicator should be green
437- assertEquals (GREEN , healthIndicatorService .calculate ( false , null ).status ());
437+ assertEquals (GREEN , healthIndicatorService .calculateFromCurrentInfo ( ).status ());
438438 verify (healthIndicatorService ).stopOccurred ();
439439
440440 // let the deadlocked thread end, so we can cleanly exit the test
0 commit comments