Skip to content

Commit

Permalink
add alternate reason message to skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Aug 17, 2017
1 parent 10baddc commit 20a0cd7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public void recognise() throws Exception {
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;
}
Expand Down

0 comments on commit 20a0cd7

Please sign in to comment.