add alternate reason message to skip test
@@ -32,7 +32,9 @@ public class DL4JVGG16NetTest {
try {
config = new TikaConfig(getClass().getResourceAsStream("dl4j-vgg16-config.xml"));
} catch (TikaConfigException e) {
- if (e.getMessage() != null && e.getMessage().contains("Connection refused")) {
+ if (e.getMessage() != null
+ && (e.getMessage().contains("Connection refused")
+ || e.getMessage().contains("connect timed out"))) {
//skip test
return;
}
