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 2026/04/07 10:09:20 UTC

(tika) 01/01: [TIKA-4704] clean up to avoid remaining temp directory

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

tilman pushed a commit to branch TIKA-4704-13
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 4acd9b95ede4bfa4d6d8942d4292a21c71403753
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Tue Apr 7 12:09:10 2026 +0200

    [TIKA-4704] clean up to avoid remaining temp directory
---
 .../test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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 0b89604bfb..ee909098fc 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
@@ -205,10 +205,11 @@ public class TikaGrpcServerTest {
     public void testBiStream(Resources resources) throws Exception {
         String serverName = InProcessServerBuilder.generateName();
 
+        TikaGrpcServerImpl tikaGrpcServerImpl = new TikaGrpcServerImpl(tikaConfig.toAbsolutePath().toString());
         Server server = InProcessServerBuilder
                 .forName(serverName)
                 .directExecutor()
-                .addService(new TikaGrpcServerImpl(tikaConfig.toAbsolutePath().toString()))
+                .addService(tikaGrpcServerImpl)
                 .build()
                 .start();
         resources.register(server, Duration.ofSeconds(10));
@@ -306,6 +307,10 @@ public class TikaGrpcServerTest {
             assertEquals(NUM_TEST_DOCS, successes.size());
             assertEquals(1, errors.size());
             assertTrue(finished.get());
+
+            tikaGrpcServerImpl.shutdown();
+            server.shutdown();
+            tikaGrpcServerImpl.postShutdown();
         } finally {
             FileUtils.deleteDirectory(testDocumentFolder);
         }