File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
jdbc-perf-logger-driver/src/test/java/ch/sla/jdbcperflogger/driver Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2929
3030public class WrappingDriverUnloadTest {
3131
32- private static final int WAIT_TIME = 1 ;
32+ private static final int WAIT_TIME = 10 ;
3333
3434 @ SuppressWarnings ("null" )
3535 @ Test
@@ -38,6 +38,8 @@ public void testUnload() throws Exception {
3838 final int clientPort = DriverConfig .INSTANCE .getClientAddresses ().get (0 ).getPort ();
3939 final ServerSocket logReceiver = new ServerSocket (clientPort );
4040
41+ await ().atMost (WAIT_TIME , TimeUnit .SECONDS ).until (portInUse (clientPort ));
42+
4143 WrappingDriver .load ();
4244
4345 try {
@@ -46,8 +48,8 @@ public void testUnload() throws Exception {
4648 final Socket client = logReceiver .accept ();
4749 final int remotePort = client .getPort ();
4850
49- await (). atMost ( WAIT_TIME , TimeUnit . SECONDS ). until ( portInUse ( clientPort ));
50- await ().atMost (WAIT_TIME , TimeUnit .SECONDS ).until (portInUse (remotePort ));
51+ // following line is commented, not working on macOS
52+ // await().atMost(WAIT_TIME, TimeUnit.SECONDS).until(portInUse(remotePort));
5153
5254 client .close ();
5355 logReceiver .close ();
You can’t perform that action at this time.
0 commit comments