Skip to content

Commit 6298f88

Browse files
authored
do not fail the whole test if the curl command returns a non-zero status (#1595)
* do not fail the whole test if the curl command returns a non-zero status we expect if to fail, and want to retry it until it is successful. it can fail because the web app has not had time to start up yet. the current code throws a runtime exception on a non-zero return code, which causes this test to fail too fast and incorrectly. * use vanaja's simpler solution
1 parent ffebcea commit 6298f88

File tree

1 file changed

+1
-1
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils

1 file changed

+1
-1
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ protected void createLoadBalancer() throws Exception {
17131713

17141714
private void callWebAppAndWaitTillReady(String curlCmd) throws Exception {
17151715
for (int i = 0; i < maxIterations; i++) {
1716-
ExecResult result = TestUtils.exec(curlCmd, true);
1716+
ExecResult result = ExecCommand.exec(curlCmd);
17171717
String responseCode = result.stdout().trim();
17181718
if (result.exitValue() != 0 || !responseCode.equals("200")) {
17191719
LoggerHelper.getLocal().log(Level.INFO,

0 commit comments

Comments
 (0)