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

albumenj pushed a commit to branch 3.0-multi-instances
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0-multi-instances by this 
push:
     new 464db10  Fix repository changed after ApplicationModel destroyed
464db10 is described below

commit 464db103388fa2aa0f84a135c47b4b52984d9a74
Author: Albumen Kevin <[email protected]>
AuthorDate: Sun Aug 29 18:43:17 2021 +0800

    Fix repository changed after ApplicationModel destroyed
---
 .../test/java/org/apache/dubbo/qos/command/impl/InvokeTelnetTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/impl/InvokeTelnetTest.java
 
b/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/impl/InvokeTelnetTest.java
index 9295781..59eef2c 100644
--- 
a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/impl/InvokeTelnetTest.java
+++ 
b/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/impl/InvokeTelnetTest.java
@@ -46,7 +46,7 @@ public class InvokeTelnetTest {
     private Channel mockChannel;
     private CommandContext mockCommandContext;
     private final DefaultAttributeMap defaultAttributeMap = new 
DefaultAttributeMap();
-    private final ServiceRepository repository = 
ApplicationModel.defaultModel().getApplicationServiceRepository();
+    private ServiceRepository repository;
 
     @BeforeEach
     public void setup() {
@@ -54,6 +54,7 @@ public class InvokeTelnetTest {
         mockChannel = mock(Channel.class);
         mockCommandContext = mock(CommandContext.class);
         given(mockCommandContext.getRemote()).willReturn(mockChannel);
+        repository = 
ApplicationModel.defaultModel().getApplicationServiceRepository();
     }
 
     @AfterEach

Reply via email to