fix : The client and server are connected synchronously

pull/1006/head
pizihao 3 years ago
parent 75176164c7
commit 8c7237e5e7

@ -27,7 +27,7 @@ import java.io.IOException;
public class NettyServerSupportTest { public class NettyServerSupportTest {
@Test @Test
public void bind() throws IOException { public synchronized void bind() throws IOException {
NettyServerSupport support = new NettyServerSupport(() -> 8891, InstanceServerLoader.class); NettyServerSupport support = new NettyServerSupport(() -> 8891, InstanceServerLoader.class);
support.bind(); support.bind();
while (!support.isActive()) { while (!support.isActive()) {

Loading…
Cancel
Save