JAVA-25341 fix Java networking flaky tests (#14798)
This commit is contained in:
committed by
GitHub
parent
1f9bcc7ef1
commit
914d01d03d
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class GreetServerIntegrationTest {
|
||||
|
||||
Executors.newSingleThreadExecutor()
|
||||
.submit(() -> new GreetServer().start(port));
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
@Before
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class SocketEchoMultiIntegrationTest {
|
||||
s.close();
|
||||
|
||||
Executors.newSingleThreadExecutor().submit(() -> new EchoMultiServer().start(port));
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user