test/jdk/java/net/httpclient/websocket/PendingPongTextClose.java
branchhttp-client-branch
changeset 56335 7e56c39fa1fa
parent 56325 195d2970d981
child 56416 db552808d149
--- a/test/jdk/java/net/httpclient/websocket/PendingPongTextClose.java	Wed Mar 21 14:11:38 2018 +0000
+++ b/test/jdk/java/net/httpclient/websocket/PendingPongTextClose.java	Wed Mar 21 15:12:11 2018 +0000
@@ -25,10 +25,13 @@
  * @test
  * @build DummyWebSocketServer
  * @run testng/othervm
- *      -Djdk.internal.httpclient.websocket.debug=true
  *       PendingPongTextClose
  */
 
+// This test produce huge logs (14Mb+) so disable logging by default
+// *      -Djdk.internal.httpclient.debug=true
+// *      -Djdk.internal.httpclient.websocket.debug=true
+
 import org.testng.annotations.Test;
 
 import java.net.http.WebSocket;
@@ -55,7 +58,7 @@
             System.out.printf("begin cycle #%s at %s%n", i, start);
             cfPong = webSocket.sendPong(data);
             try {
-                cfPong.get(5, TimeUnit.SECONDS);
+                cfPong.get(MAX_WAIT_SEC, TimeUnit.SECONDS);
                 data.clear();
             } catch (TimeoutException e) {
                 break;