8000 wait 5 minutes · java-operator-sdk/samples@1fbc377 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit 1fbc377

Browse files
committed
wait 5 minutes
1 parent a860b2c commit 1fbc377

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tomcat/src/test/java/io/javaoperatorsdk/operator/sample/IntegrationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public void test() {
7474
tomcatClient.inNamespace(TEST_NS).create(tomcat);
7575
webappClient.inNamespace(TEST_NS).create(webapp1);
7676

77-
log.info("Waiting 2 minutes for Tomcat and Webapp CR statuses to be updated");
78-
await().atMost(2, MINUTES).untilAsserted(() -> {
77+
log.info("Waiting 5 minutes for Tomcat and Webapp CR statuses to be updated");
78+
await().atMost(5, MINUTES).untilAsserted(() -> {
7979
Tomcat updatedTomcat = tomcatClient.inNamespace(TEST_NS).withName(tomcat.getMetadata().getName()).get();
8080
Webapp updatedWebapp = webappClient.inNamespace(TEST_NS).withName(webapp1.getMetadata().getName()).get();
8181
assertThat(updatedTomcat.getStatus(), is(notNullValue()));
@@ -85,15 +85,15 @@ public void test() {
8585
});
8686

8787
String url = "http://" + tomcat.getMetadata().getName() + "/" + webapp1.getSpec().getContextPath() + "/";
88-
log.info("Starting curl Pod and waiting 2 minutes for GET of {} to return 200", url);
88+
log.info("Starting curl Pod and waiting 5 minutes for GET of {} to return 200", url);
8989
Pod curlPod = client.run().inNamespace(TEST_NS)
9090
.withRunConfig(new RunConfigBuilder()
9191
.withArgs("-s", "-o", "/dev/null", "-w", "%{http_code}", url)
9292
.withName("curl")
9393
.withImage("curlimages/curl:7.78.0")
9494
.withRestartPolicy("Never")
9595
.build()).done();
96-
await().atMost(2, MINUTES).untilAsserted(() -> {
96+
await().atMost(5, MINUTES).untilAsserted(() -> {
9797
try {
9898
String curlOutput = client.pods().inNamespace(TEST_NS).withName(curlPod.getMetadata().getName()).getLog();
9999
assertThat(curlOutput, equalTo("200"));

0 commit comments

Comments
 (0)
0