You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by nd...@apache.org on 2024/03/29 10:10:05 UTC

(tika) branch TIKA-4181-grpc updated: clean up wording

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

ndipiazza pushed a commit to branch TIKA-4181-grpc
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/TIKA-4181-grpc by this push:
     new 48febc58a clean up wording
48febc58a is described below

commit 48febc58a415d5f16dda32927fc3badb4264b576
Author: Nicholas DiPiazza <nd...@apache.org>
AuthorDate: Fri Mar 29 05:10:00 2024 -0500

    clean up wording
---
 .../test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/tika-pipes/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java b/tika-pipes/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
index 82f7aa038..d0692ce6a 100644
--- a/tika-pipes/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
+++ b/tika-pipes/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
@@ -58,10 +58,8 @@ public class TikaGrpcServerTest {
 
     @Test
     public void testTikaCreateFetcher(Resources resources) throws Exception {
-        // Generate a unique in-process server name.
         String serverName = InProcessServerBuilder.generateName();
 
-        // Create a server, add service, start, and register for automatic graceful shutdown.
         Server server = InProcessServerBuilder
                 .forName(serverName)
                 .directExecutor()
@@ -84,10 +82,8 @@ public class TikaGrpcServerTest {
 
     @Test
     public void testBiStream(Resources resources) throws Exception {
-        // Generate a unique in-process server name.
         String serverName = InProcessServerBuilder.generateName();
 
-        // Create a server, add service, start, and register for automatic graceful shutdown.
         Server server = InProcessServerBuilder
                 .forName(serverName)
                 .directExecutor()
@@ -114,7 +110,7 @@ public class TikaGrpcServerTest {
         StreamObserver<FetchAndParseReply> replyStreamObserver = new StreamObserver<>() {
             @Override
             public void onNext(FetchAndParseReply fetchAndParseReply) {
-                LOG.info("Fetched {} with metadata {}", fetchAndParseReply.getFetchKey(),
+                LOG.debug("Fetched {} with metadata {}", fetchAndParseReply.getFetchKey(),
                         fetchAndParseReply.getFieldsMap());
                 fetchAndParseReplys.add(fetchAndParseReply);
             }
@@ -134,7 +130,7 @@ public class TikaGrpcServerTest {
                 tikaStub.fetchAndParseBiDirectionalStreaming(replyStreamObserver);
 
         File testDocumentFolder = new File("target/" + DateTimeFormatter.ofPattern(
-                "yyyy_mm_dd_HH_MM_ssSSS").format(LocalDateTime.now()) + "-" + UUID.randomUUID());
+                "yyyy_MM_dd_HH_mm_ssSSS").format(LocalDateTime.now()) + "-" + UUID.randomUUID());
         assertTrue(testDocumentFolder.mkdir());
         for (int i = 0; i < NUM_TEST_DOCS; ++i) {
             File testFile = new File(testDocumentFolder, "test-" + i + ".html");