sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject svn commit: r1754225 - /sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java
Date Wed, 27 Jul 2016 07:49:38 GMT
Author: rombert
Date: Wed Jul 27 07:49:38 2016
New Revision: 1754225

URL: http://svn.apache.org/viewvc?rev=1754225&view=rev
Log:
SLING-5904 - SmokeIT test fails 50% of the time

Handle the case where a ConnectException occurs during rule check. Most likely
the server is not yet started.

Modified:
    sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java

Modified: sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java?rev=1754225&r1=1754224&r2=1754225&view=diff
==============================================================================
--- sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java
(original)
+++ sling/trunk/launchpad/builder/src/test/java/org/apache/sling/launchpad/LaunchpadReadyRule.java
Wed Jul 27 07:49:38 2016
@@ -18,6 +18,7 @@ package org.apache.sling.launchpad;
 
 import java.io.BufferedReader;
 import java.io.InputStreamReader;
+import java.net.ConnectException;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -85,6 +86,8 @@ public class LaunchpadReadyRule extends
                 if (lastFailure == null) {
                     return;
                 }
+            } catch ( ConnectException e ) {
+                lastFailure = e.getClass().getName() + " : " + e.getMessage();
             }
 
             Thread.sleep(WAIT_BETWEEN_TRIES_MILLIS);



Mime
View raw message