8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java
Summary: Add print of timeout value.
Reviewed-by: alanb
--- 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();