Skip to content

Commit ed0e8e6

Browse files
committed
fix test
Signed-off-by: wind57 <[email protected]>
1 parent 4985617 commit ed0e8e6

File tree

1 file changed

+3
-5
lines changed
  • spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-reload/src/test/java/org/springframework/cloud/kubernetes/fabric8/client/reload

1 file changed

+3
-5
lines changed

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-reload/src/test/java/org/springframework/cloud/kubernetes/fabric8/client/reload/Fabric8ConfigMapConfigTreeIT.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,13 @@ void test() {
115115

116116
// add app annotation
117117
Map<String, String> existingAnnotations = new HashMap<>(
118-
Optional.ofNullable(configMapConfigTree.getMetadata().getAnnotations()).orElse(new HashMap<>()));
119-
existingAnnotations.put("spring.cloud.kubernetes.configmap.apps", "spring-cloud-kubernetes-fabric8-client-reload");
118+
Optional.ofNullable(configMapConfigTree.getMetadata().getAnnotations()).orElse(new HashMap<>()));
119+
existingAnnotations.put("spring.cloud.kubernetes.configmap.apps",
120+
"spring-cloud-kubernetes-fabric8-client-reload");
120121
configMapConfigTree.getMetadata().setAnnotations(existingAnnotations);
121122

122123
util.client().configMaps().resource(configMapConfigTree).createOrReplace();
123124

124-
Commons.waitForLogStatement("Detected change in config maps/secrets, reload will be triggered", K3S,
125-
IMAGE_NAME);
126-
127125
await().atMost(Duration.ofSeconds(180))
128126
.pollInterval(Duration.ofSeconds(1))
129127
.until(() -> webClient.method(HttpMethod.GET)

0 commit comments

Comments
 (0)