You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2023/11/17 21:05:34 UTC

(tika) branch branch_2x updated: Temporarily ignore problems downloading model files

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_2x by this push:
     new e98410b55 Temporarily ignore problems downloading model files
e98410b55 is described below

commit e98410b555cb96f8ae280a4c294e3a3a0c5c4996
Author: tallison <ta...@apache.org>
AuthorDate: Fri Nov 17 16:05:21 2023 -0500

    Temporarily ignore problems downloading model files
---
 .../test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java   | 2 +-
 .../src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
index 0fb8fc0ba..2d19d1d22 100644
--- a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
+++ b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
@@ -39,7 +39,7 @@ public class DL4JInceptionV3NetTest {
             config = new TikaConfig(is);
         } catch (Exception e) {
             if (e.getMessage() != null && (e.getMessage().contains("Connection refused") ||
-                    e.getMessage().contains("connect timed out"))) {
+                    e.getMessage().contains("connect timed out") || e.getMessage().contains("404"))) {
                 assumeTrue(false, "skipping test because of connection issue");
             }
             throw e;
diff --git a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
index fcf157eb7..83ce2e990 100644
--- a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
+++ b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
@@ -39,7 +39,7 @@ public class DL4JVGG16NetTest {
             config = new TikaConfig(is);
         } catch (Exception e) {
             if (e.getMessage() != null && (e.getMessage().contains("Connection refused") ||
-                    e.getMessage().contains("connect timed out"))) {
+                    e.getMessage().contains("connect timed out") || e.getMessage().contains("404"))) {
                 assumeTrue(false, "skipping test because of connection issue");
             }
             throw e;