JAVA-25341 fix Java networking flaky tests (#14798)
This commit is contained in:
parent
1f9bcc7ef1
commit
914d01d03d
|
@ -24,7 +24,7 @@ public class EchoIntegrationTest {
|
|||
|
||||
Executors.newSingleThreadExecutor()
|
||||
.submit(() -> new EchoServer().start(port));
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
private EchoClient client = new EchoClient();
|
||||
|
|
|
@ -27,7 +27,7 @@ public class GreetServerIntegrationTest {
|
|||
|
||||
Executors.newSingleThreadExecutor()
|
||||
.submit(() -> new GreetServer().start(port));
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
@Before
|
||||
|
|
|
@ -23,7 +23,7 @@ public class SocketEchoMultiIntegrationTest {
|
|||
s.close();
|
||||
|
||||
Executors.newSingleThreadExecutor().submit(() -> new EchoMultiServer().start(port));
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue