From c4a9cc9f58742e37631833bf23ed350b51693ec2 Mon Sep 17 00:00:00 2001 From: TALLISON Date: Tue, 14 May 2019 08:36:58 -0400 Subject: [PATCH] TIKA-2871 -- don't include testChm_oom.chm in multithreaded tests. --- .../org/apache/tika/parser/chm/TestChmExtraction.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmExtraction.java b/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmExtraction.java index c49a0064fc..eab657ee57 100644 --- a/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmExtraction.java +++ b/tika-parsers/src/test/java/org/apache/tika/parser/chm/TestChmExtraction.java @@ -229,7 +229,13 @@ public boolean accept(File pathname) { //this file is a beast, skip it if (pathname.getName().equals("testChm2.chm")) { return false; - } else { + //this file throws an exception in the baseline and then + //isn't included in the actual tests. + //If we do want to include it we need to change the way + //MultiThreadedTikaTest handles files that throw exceptions + } else if (pathname.getName().equals("testChm_oom.chm")) { + return false; + } else{ return true; } } else {