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 2022/04/25 18:28:59 UTC

[tika] 01/02: fix assertion on error msg in two way tls test

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

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

commit 5b90009e72d336b908328ddc51d6f184fe259fa7
Author: tallison <ta...@apache.org>
AuthorDate: Mon Apr 25 14:24:17 2022 -0400

    fix assertion on error msg in two way tls test
---
 .../org/apache/tika/server/core/TikaServerIntegrationTest.java     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
index 3bcf40a05..cc8839d27 100644
--- a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
+++ b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
@@ -410,11 +410,8 @@ public class TikaServerIntegrationTest extends IntegrationTestBase {
                     ClassLoader.getSystemResourceAsStream(TEST_HELLO_WORLD));
             fail("bad, bad, bad. this should have failed!");
         } catch (Exception e) {
-            assertTrue(
-                    //linux
-                    e.getMessage().contains("readHandshakeRecord") ||
-                    //windows
-                    e.getMessage().contains("SocketException"));
+            //the messages vary too much between operating systems and
+            //java versions to make a reliable assertion
         }
     }