8000 add aliases to awat for better debugging · java-operator-sdk/samples@6a1b9bb · 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 6a1b9bb

Browse files
committed
add aliases to awat for better debugging
1 parent a0dc153 commit 6a1b9bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void test() {
9999
.withRestartPolicy("Never")
100100
.build()).done();
101101
log.info("Waiting for curl Pod to finish running");
102-
await().atMost(timeoutMinutes, MINUTES).until(() -> client.pods().inNamespace(TEST_NS).withName("curl").get().getStatus().getPhase().equals("Succeeded"));
102+
await("wait-for-curl-pod-run").atMost(timeoutMinutes, MINUTES).until(() -> client.pods().inNamespace(TEST_NS).withName("curl").get().getStatus().getPhase().equals("Succeeded"));
103103

104104
String curlOutput = client.pods().inNamespace(TEST_NS).withName(curlPod.getMetadata().getName()).getLog();
105105
log.info("Output from curl: '{}'", curlOutput);
@@ -109,7 +109,7 @@ public void test() {
109109
} finally {
110110
client.pods().inNamespace(TEST_NS).withName("curl").delete();
111111
log.info("Waiting for curl Pod to be deleted");
112-
await().atMost(timeoutMinutes, MINUTES).until(() -> client.pods().inNamespace(TEST_NS).withName("curl").get() == null);
112+
await("wait-for-curl-pod-stop").atMost(timeoutMinutes, MINUTES).until(() -> client.pods().inNamespace(TEST_NS).withName("curl").get() == null);
113113
}
114114
});
115115

0 commit comments

Comments
 (0)
0