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

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo-spi-extensions.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 0095abd9 fix test (#539)
0095abd9 is described below

commit 0095abd9b72a97bba67b4ed47344f4f6a03ec8d5
Author: 王聪洋 <[email protected]>
AuthorDate: Tue Oct 22 16:17:26 2024 +0800

    fix test (#539)
---
 .../dubbo/rpc/cluster/support/BroadcastCluster1InvokerTest.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/dubbo-cluster-extensions/dubbo-cluster-broadcast-1/src/test/java/org/apache/dubbo/rpc/cluster/support/BroadcastCluster1InvokerTest.java
 
b/dubbo-cluster-extensions/dubbo-cluster-broadcast-1/src/test/java/org/apache/dubbo/rpc/cluster/support/BroadcastCluster1InvokerTest.java
index 4a01a9c9..f89e92fc 100644
--- 
a/dubbo-cluster-extensions/dubbo-cluster-broadcast-1/src/test/java/org/apache/dubbo/rpc/cluster/support/BroadcastCluster1InvokerTest.java
+++ 
b/dubbo-cluster-extensions/dubbo-cluster-broadcast-1/src/test/java/org/apache/dubbo/rpc/cluster/support/BroadcastCluster1InvokerTest.java
@@ -92,7 +92,7 @@ public class BroadcastCluster1InvokerTest {
         invoker4.invokeThrowEx();
         Throwable exception = clusterInvoker.invoke(invocation).getException();
         assertInstanceOf(RpcException.class, exception);
-        
assertTrue(exception.getMessage().contains("java.lang.NullPointerException"));
+        assertTrue(exception.getMessage().contains("throwEx is true"));
         assertTrue(invoker1.isInvoked());
         assertTrue(invoker2.isInvoked());
         assertTrue(invoker3.isInvoked());
@@ -106,7 +106,7 @@ public class BroadcastCluster1InvokerTest {
         invoker1.invokeThrowEx();
         Throwable exception = clusterInvoker.invoke(invocation).getException();
         assertInstanceOf(RpcException.class, exception);
-        
assertTrue(exception.getMessage().contains("java.lang.NullPointerException"));
+        assertTrue(exception.getMessage().contains("throwEx is true"));
     }
 
     @Test
@@ -146,8 +146,8 @@ class MockInvoker implements Invoker<DemoService> {
     public Result invoke(Invocation invocation) throws RpcException {
         invoked = true;
         if (throwEx) {
-            throwEx = false;
-            throw new RpcException();
+//            throwEx = false;
+            throw new RpcException("throwEx is true");
         }
         return new AppResponse("sucess");
     }

Reply via email to