6965150: TEST_BUG: java/nio/channels/AsynchronousSocketChannel/Basic.java takes too long
Alan Bateman
Alan.Bateman at oracle.com
Mon Jun 20 09:41:06 PDT 2011
I brought this up about a year ago [1]. This test takes about 4 mins,
most of which is spent in a sub-test that attempts to connect to a host
that probably does not exist. I'm looking at this test again as we need
to speed it up. Here's the updated webrev with a change that adds the
option -skipSlowConnectTest to the test. The @run tag is changed to pass
this option so it skips the "slow connect" test during normal test runs:
http://cr.openjdk.java.net/~alanb/6965150/webrev/
The alternative is to just get rid of this sub-test as originally
suggested. This test predates try-with-resources so I've retrofitted to
a few places. Not everywhere, and more could be done if anyone has cycles.
-Alan.
[1] http://mail.openjdk.java.net/pipermail/nio-dev/2010-June/001003.html
More information about the nio-dev
mailing list