test/jdk/java/net/httpclient/websocket/PendingOperations.java
branchhttp-client-branch
changeset 56335 7e56c39fa1fa
parent 56325 195d2970d981
child 56416 db552808d149
equal deleted inserted replaced
56334:ca27c57cb857 56335:7e56c39fa1fa
    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