equal
deleted
inserted
replaced
31 /* Common infrastructure for tests that check pending operations */ |
31 /* Common infrastructure for tests that check pending operations */ |
32 public class PendingOperations { |
32 public class PendingOperations { |
33 |
33 |
34 static final Class<IllegalStateException> ISE = IllegalStateException.class; |
34 static final Class<IllegalStateException> ISE = IllegalStateException.class; |
35 static final Class<IOException> IOE = IOException.class; |
35 static final Class<IOException> IOE = IOException.class; |
|
36 // Time after which we deem that the local send buffer and remote |
|
37 // receive buffer must be full. This has been heuristically determined. |
|
38 // At the time of writing, using anything <= 5s on Mac will make the |
|
39 // tests fail intermittently. |
|
40 static final long MAX_WAIT_SEC = 10; // seconds. |
36 |
41 |
37 DummyWebSocketServer server; |
42 DummyWebSocketServer server; |
38 WebSocket webSocket; |
43 WebSocket webSocket; |
39 |
44 |
40 @AfterTest |
45 @AfterTest |