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

albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.2 by this push:
     new bd5d158d1b Fix ReplierDispatcherTest test case in Windows platform
bd5d158d1b is described below

commit bd5d158d1bb4295837b4b79e08f6ae5230b315c1
Author: Albumen Kevin <[email protected]>
AuthorDate: Tue Sep 26 16:30:03 2023 +0800

    Fix ReplierDispatcherTest test case in Windows platform
---
 .../dubbo/remoting/transport/netty4/ReplierDispatcherTest.java     | 2 +-
 .../dubbo-remoting-netty4/src/test/resources/log4j.properties      | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4/ReplierDispatcherTest.java
 
b/dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4/ReplierDispatcherTest.java
index ac1cb8f60d..3ba8098f2d 100644
--- 
a/dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4/ReplierDispatcherTest.java
+++ 
b/dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4/ReplierDispatcherTest.java
@@ -67,7 +67,7 @@ class ReplierDispatcherTest {
         ReplierDispatcher dispatcher = new ReplierDispatcher();
         dispatcher.addReplier(RpcMessage.class, new RpcMessageHandler());
         dispatcher.addReplier(Data.class, (channel, msg) -> new 
StringMessage("hello world"));
-        URL url = URL.valueOf("exchange://localhost:" + port + "?" + 
CommonConstants.TIMEOUT_KEY + "=60000");
+        URL url = URL.valueOf("exchange://localhost:" + port + "?" + 
CommonConstants.TIMEOUT_KEY + "=60000&threadpool=cached");
         ApplicationModel applicationModel = ApplicationModel.defaultModel();
         ApplicationConfig applicationConfig = new 
ApplicationConfig("provider-app");
         
applicationConfig.setExecutorManagementMode(EXECUTOR_MANAGEMENT_MODE_DEFAULT);
diff --git 
a/dubbo-remoting/dubbo-remoting-netty4/src/test/resources/log4j.properties 
b/dubbo-remoting/dubbo-remoting-netty4/src/test/resources/log4j.properties
new file mode 100644
index 0000000000..6793e10f82
--- /dev/null
+++ b/dubbo-remoting/dubbo-remoting-netty4/src/test/resources/log4j.properties
@@ -0,0 +1,7 @@
+###set log levels###
+log4j.rootLogger=debug, stdout
+###output to the console###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{dd/MM/yy HH:mm:ss:SSS z}] 
%t %5p %c{2}: %m%n

Reply via email to