test/jdk/java/net/httpclient/websocket/WebSocketTest.java
branchhttp-client-branch
changeset 56269 234813fd33bc
parent 56263 4933a477d628
child 56294 181bc33917e4
--- a/test/jdk/java/net/httpclient/websocket/WebSocketTest.java	Fri Mar 09 11:24:37 2018 +0000
+++ b/test/jdk/java/net/httpclient/websocket/WebSocketTest.java	Fri Mar 09 16:47:00 2018 +0000
@@ -59,7 +59,7 @@
     private static final Class<IllegalStateException> ISE = IllegalStateException.class;
     private static final Class<IOException> IOE = IOException.class;
 
-//    @Test
+    @Test
     public void immediateAbort() throws Exception {
         try (DummyWebSocketServer server = serverWithCannedData(0x81, 0x00, 0x88, 0x00)) {
             server.open();
@@ -235,7 +235,6 @@
                     .join();
             ws.sendClose(NORMAL_CLOSURE, "").join();
             assertTrue(ws.isOutputClosed());
-            assertFalse(ws.isInputClosed());
             assertEquals(ws.getSubprotocol(), "");
             ws.request(1); // No exceptions must be thrown
         }
@@ -263,7 +262,6 @@
             // The output closes even if the Close message has not been sent
             assertFalse(cf.isDone());
             assertTrue(ws.isOutputClosed());
-            assertFalse(ws.isInputClosed());
             assertEquals(ws.getSubprotocol(), "");
         }
     }
@@ -286,7 +284,7 @@
         };
     }
 
-//    @Test
+    @Test
     public void abortPendingSendBinary() throws Exception {
         try (DummyWebSocketServer server = notReadingServer()) {
             server.open();
@@ -313,7 +311,7 @@
         }
     }
 
-//    @Test
+    @Test
     public void abortPendingSendText() throws Exception {
         try (DummyWebSocketServer server = notReadingServer()) {
             server.open();