Skip to content

Commit 1ba825f

Browse files
committed
test
1 parent 7b348b6 commit 1ba825f

File tree

2 files changed

+3
-2
lines changed
  • spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-reload/src/test/java/org/springframework/cloud/kubernetes/fabric8/client/reload
  • spring-cloud-kubernetes-test-support/src/main/resources/config-watcher

2 files changed

+3
-2
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ void test() {
115115

116116
util.client().configMaps().resource(configMapConfigTree).createOrReplace();
117117

118-
await().timeout(Duration.ofSeconds(180))
118+
await().atMost(Duration.ofSeconds(180))
119+
.pollInterval(Duration.ofSeconds(1))
119120
.until(() -> webClient.method(HttpMethod.GET)
120121
.retrieve()
121122
.bodyToMono(String.class)

spring-cloud-kubernetes-test-support/src/main/resources/config-watcher/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ spec:
3434
- name: LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_CLOUD_KUBERNETES_COMMONS_CONFIG_RELOAD
3535
value: DEBUG
3636
- name: SPRING_CLOUD_KUBERNETES_CONFIGURATION_WATCHER_REFRESHDELAY
37-
value: "60000"
37+
value: "30000"

0 commit comments

Comments
 (0)