From ae5178e032e04820d625445e7efbb122c88cf9fe Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 9 Mar 2023 16:15:23 -0500 Subject: [PATCH] Updates TtlSchedulerTests to use correct method. See gh-770 --- .../cloud/consul/discovery/TtlSchedulerTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/TtlSchedulerTests.java b/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/TtlSchedulerTests.java index 86ea30ed..a4cad404 100644 --- a/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/TtlSchedulerTests.java +++ b/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/TtlSchedulerTests.java @@ -76,25 +76,25 @@ class TtlSchedulerTests { // Wait for 5s and it should have run 3 times as the interval is 2s and it runs // immediately when added awaitFor(Duration.ofSeconds(5)); - verify(client, times(3)).agentCheckPass("service:" + serviceId); + verify(client, times(3)).agentCheckPass("service:" + serviceId, null, null); } @Test void agentCheckPassGetsCalledWhenApplicationStatusIsPassing() { String serviceId = addServiceToSchedulerWhenApplicationStatusIs(PASSING); - verify(client).agentCheckPass("service:" + serviceId); + verify(client).agentCheckPass("service:" + serviceId, null, null); } @Test void agentCheckWarnGetsCalledWhenApplicationStatusIsWarning() { String serviceId = addServiceToSchedulerWhenApplicationStatusIs(WARNING); - verify(client).agentCheckWarn("service:" + serviceId); + verify(client).agentCheckWarn("service:" + serviceId, null, null); } @Test void agentCheckFailGetsCalledWhenApplicationStatusIsCritical() { String serviceId = addServiceToSchedulerWhenApplicationStatusIs(CRITICAL); - verify(client).agentCheckFail("service:" + serviceId); + verify(client).agentCheckFail("service:" + serviceId, null, null); } private String addServiceToSchedulerWhenApplicationStatusIs(CheckStatus checkStatus) {