} catch (RuntimeException e) {\r
// only allow a ConnectException because of timeout, we see this in Jenkins from time to time...\r
assertNotNull("Only allowing ConnectException here, but had: " + e, e.getCause());\r
- assertTrue("Only allowing ConnectException here, but had: " + e, e.getCause() instanceof ConnectException);\r
+ if(!(e.getCause() instanceof ConnectException)) {\r
+ throw e;\r
+ }\r
assertTrue("Only allowing ConnectException here, but had: " + e, e.getCause().getMessage().contains("timed out"));\r
}\r
\r