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

fanjia pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2653f6798e [Fix][Connectors-v2] Fix UT for connector-http (#9821)
2653f6798e is described below

commit 2653f6798efeced85cc4bb0db3fb9e181bf8bf5e
Author: zhangdonghao <[email protected]>
AuthorDate: Fri Sep 5 11:49:55 2025 +0800

    [Fix][Connectors-v2] Fix UT for connector-http (#9821)
---
 .../seatunnel/http/HttpSourceReaderInternalPollNextTest.java           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/seatunnel-connectors-v2/connector-http/connector-http-base/src/test/java/org/apache/seatunnel/connectors/seatunnel/http/HttpSourceReaderInternalPollNextTest.java
 
b/seatunnel-connectors-v2/connector-http/connector-http-base/src/test/java/org/apache/seatunnel/connectors/seatunnel/http/HttpSourceReaderInternalPollNextTest.java
index 8b04031ef9..057eeb851b 100644
--- 
a/seatunnel-connectors-v2/connector-http/connector-http-base/src/test/java/org/apache/seatunnel/connectors/seatunnel/http/HttpSourceReaderInternalPollNextTest.java
+++ 
b/seatunnel-connectors-v2/connector-http/connector-http-base/src/test/java/org/apache/seatunnel/connectors/seatunnel/http/HttpSourceReaderInternalPollNextTest.java
@@ -121,8 +121,9 @@ public class HttpSourceReaderInternalPollNextTest {
         httpSourceReader =
                 new HttpSourceReader(
                         httpParameter, context, deserializationSchema, 
jsonField, null, pageInfo);
+        // This creates a real HTTP client. For testing purposes, we need to 
replace it with a mock.
         httpSourceReader.open();
-
+        httpSourceReader.setHttpClient(httpClientProvider);
         httpSourceReader.internalPollNext(collector);
 
         // Verify the body was updated correctly

Reply via email to