This repository was archived by the owner on Jan 4, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tomcat/src/test/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public void test() {
99
99
.withRestartPolicy ("Never" )
100
100
.build ()).done ();
101
101
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" ));
103
103
104
104
String curlOutput = client .pods ().inNamespace (TEST_NS ).withName (curlPod .getMetadata ().getName ()).getLog ();
105
105
log .info ("Output from curl: '{}'" , curlOutput );
@@ -109,7 +109,7 @@ public void test() {
109
109
} finally {
110
110
client .pods ().inNamespace (TEST_NS ).withName ("curl" ).delete ();
111
111
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 );
113
113
}
114
114
});
115
115
You can’t perform that action at this time.
0 commit comments