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

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

commit 8cfa5826b6a1baf1f65e11b72829b18ceec6b1d5
Author: Tilman Hausherr <[email protected]>
AuthorDate: Mon Mar 30 21:24:50 2026 +0200

    [TIKA-4704] close input
---
 .../test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
 
b/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
index 24a7fd18fc..6a51e85704 100644
--- 
a/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
+++ 
b/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
@@ -213,7 +213,7 @@ class HttpFetcherTest extends TikaTest {
         headersMapFromConfig.put("fromFetchConfig2", 
List.of("fromFetchConfigValue2", "fromFetchConfigValue3"));
         
httpFetcher.getHttpFetcherConfig().getHttpRequestHeaders().setMap(headersMapFromConfig);
 
-        httpFetcher.fetch("http://localhost";, metadata, parseContext);
+        httpFetcher.fetch("http://localhost";, metadata, parseContext).close();
         HttpGet httpGet = httpGetArgumentCaptor.getValue();
         Assertions.assertEquals("fromFetchRequestValue1", 
httpGet.getHeaders("fromFetchRequestHeader1")[0].getValue());
         List<String> fromFetchRequestHeader2s = 
Arrays.stream(httpGet.getHeaders("fromFetchRequestHeader2"))
@@ -234,7 +234,7 @@ class HttpFetcherTest extends TikaTest {
         Assertions.assertEquals("fromFetchConfigValue3", 
fromFetchConfig2s.get(1));
 
         metadata.set(Property.externalText("httpRequestHeaders"), new String[] 
{" nick1 :   val1", "nick2:   val2"});
-        httpFetcher.fetch("http://localhost";, metadata, parseContext);
+        httpFetcher.fetch("http://localhost";, metadata, parseContext).close();
         httpGet = httpGetArgumentCaptor.getValue();
         Assertions.assertEquals("val1", 
httpGet.getHeaders("nick1")[0].getValue());
         Assertions.assertEquals("val2", 
httpGet.getHeaders("nick2")[0].getValue());

Reply via email to