8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java
authorbpb
Wed, 08 Mar 2017 09:53:19 -0800
changeset 44111 bdec8d5e30da
parent 44110 192a17e5bef2
child 44112 d0b2c775ec6d
8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java Summary: Add print of timeout value. Reviewed-by: alanb
jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java
--- a/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java	Wed Mar 08 09:49:46 2017 -0800
+++ b/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java	Wed Mar 08 09:53:19 2017 -0800
@@ -775,6 +775,7 @@
     }
 
     static void testTimeout(final long timeout, final TimeUnit unit) throws Exception {
+        System.out.printf("---- timeout: %d ms%n", unit.toMillis(timeout));
         try (Server server = new Server()) {
             AsynchronousSocketChannel ch = AsynchronousSocketChannel.open();
             ch.connect(server.address()).get();