si.confirmSignature();\r
} 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
+ if(e.getCause() == null) {\r
+ throw e;\r
+ }\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
+ assertTrue("Only allowing ConnectException with 'timed out' as message here, but had: " + e, e.getCause().getMessage().contains("timed out"));\r
}\r
\r
// verify\r