changeset 44111:bdec8d5e30da

8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java Summary: Add print of timeout value. Reviewed-by: alanb
author bpb
date Wed, 08 Mar 2017 09:53:19 -0800
parents 192a17e5bef2
children d0b2c775ec6d
files jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();