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:18 UTC

(tika) branch main 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 main
in repository https://gitbox.apache.org/repos/asf/tika.git


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

commit 8fe9ced9ec5bfba56d6e0cbdcbd97e75709861b5
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Mon Mar 31 17:55:03 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 7a3c551f3..c540e6100 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
@@ -152,6 +152,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