diff --git a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConfigWatchTests.java b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConfigWatchTests.java index 0d23e898..5bd2c75c 100644 --- a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConfigWatchTests.java +++ b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConfigWatchTests.java @@ -107,9 +107,8 @@ public class ConfigWatchTests { Response> response = new Response<>(getValues, 1L, false, 1L); when(consul.getKVValues(eq(context), anyString(), any(QueryParams.class))).thenReturn(response); - ConsulConfigProperties properties = new ConsulConfigProperties(); if (StringUtils.hasText(aclToken)) { - properties.setAclToken(aclToken); + configProperties.setAclToken(aclToken); } ConfigWatch watch = new ConfigWatch(configProperties, Arrays.asList(context), consul);