From 8c7237e5e70d26bf7b6fc83cf3808110ceb79847 Mon Sep 17 00:00:00 2001 From: pizihao <2335715300@qq.com> Date: Tue, 22 Nov 2022 15:15:01 +0800 Subject: [PATCH] fix : The client and server are connected synchronously --- .../java/cn/hippo4j/rpc/support/NettyServerSupportTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippo4j-rpc/src/test/java/cn/hippo4j/rpc/support/NettyServerSupportTest.java b/hippo4j-rpc/src/test/java/cn/hippo4j/rpc/support/NettyServerSupportTest.java index 32dc81d8..2035c502 100644 --- a/hippo4j-rpc/src/test/java/cn/hippo4j/rpc/support/NettyServerSupportTest.java +++ b/hippo4j-rpc/src/test/java/cn/hippo4j/rpc/support/NettyServerSupportTest.java @@ -27,7 +27,7 @@ import java.io.IOException; public class NettyServerSupportTest { @Test - public void bind() throws IOException { + public synchronized void bind() throws IOException { NettyServerSupport support = new NettyServerSupport(() -> 8891, InstanceServerLoader.class); support.bind(); while (!support.isActive()) {