You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2025/03/31 15:55:23 UTC

(tika) branch branch_3x updated: TIKA-4396: delete config file copy

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

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


The following commit(s) were added to refs/heads/branch_3x by this push:
     new fd21ae996 TIKA-4396: delete config file copy
fd21ae996 is described below

commit fd21ae996f7a5dc2774e7aac8040687fe0198b1e
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Mon Mar 31 17:54:39 2025 +0200

    TIKA-4396: delete config file copy
---
 .../tika/pipes/grpc/PipesBiDirectionalStreamingIntegrationTest.java | 5 +++++
 .../test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java    | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/PipesBiDirectionalStreamingIntegrationTest.java b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/PipesBiDirectionalStreamingIntegrationTest.java
index e78110abb..87f131da8 100644
--- a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/PipesBiDirectionalStreamingIntegrationTest.java
+++ b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/PipesBiDirectionalStreamingIntegrationTest.java
@@ -150,6 +150,11 @@ class PipesBiDirectionalStreamingIntegrationTest {
         }
     }
 
+    @AfterAll
+    static void cleanConfig() throws Exception {
+        FileUtils.deleteQuietly(tikaConfigXml);
+    }
+
     @BeforeEach
     void createHttpFetcher() throws Exception {
         SaveFetcherRequest saveFetcherRequest = SaveFetcherRequest
diff --git a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
index 80f391e33..ea023a895 100644
--- a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
+++ b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
@@ -48,6 +48,7 @@ import io.grpc.inprocess.InProcessServerBuilder;
 import io.grpc.stub.StreamObserver;
 import org.apache.commons.io.FileUtils;
 import org.jetbrains.annotations.NotNull;
+import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
@@ -83,6 +84,11 @@ public class TikaGrpcServerTest {
         FileUtils.copyFile(tikaConfigXmlTemplate, tikaConfigXml);
     }
 
+    @AfterAll
+    static void clean() {
+        FileUtils.deleteQuietly(tikaConfigXml);
+    }
+
     static final int NUM_FETCHERS_TO_CREATE = 10;
 
     @Test