This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 20a5efb Close all servers/ports after tests finish (#2755)
20a5efb is described below
commit 20a5efb5d11ca822b978a495b2e396b2dab313a5
Author: OrDTesters <[email protected]>
AuthorDate: Wed Nov 7 21:44:05 2018 -0600
Close all servers/ports after tests finish (#2755)
---
.../dubbo/rpc/protocol/dubbo/ReferenceCountExchangeClientTest.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/ReferenceCountExchangeClientTest.java
b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/ReferenceCountExchangeClientTest.java
index ea7743a..fb33876 100644
---
a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/ReferenceCountExchangeClientTest.java
+++
b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/ReferenceCountExchangeClientTest.java
@@ -26,7 +26,9 @@ import org.apache.dubbo.remoting.exchange.ExchangeClient;
import org.apache.dubbo.rpc.Exporter;
import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.ProxyFactory;
+import org.apache.dubbo.rpc.protocol.dubbo.support.ProtocolUtils;
+import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
@@ -52,6 +54,11 @@ public class ReferenceCountExchangeClientTest {
public static void setUpBeforeClass() throws Exception {
}
+ @AfterClass
+ public static void tearDownAfterClass() {
+ ProtocolUtils.closeAll();
+ }
+
public static Invoker<?> referInvoker(Class<?> type, URL url) {
return (Invoker<?>) protocol.refer(type, url);
}