# HG changeset patch # User tyan # Date 1389967437 0 # Node ID 1e3a7c70240cb727e5760622a1fe45903147cf30 # Parent 9a913cb32aae85a502237a5806798af67a38fda5 8031666: TEST_BUG: java/net/ipv6tests/UdpTest.java failed because of SocketTimeoutException Reviewed-by: alanb, chegar diff -r 9a913cb32aae -r 1e3a7c70240c jdk/test/java/net/ipv6tests/UdpTest.java --- a/jdk/test/java/net/ipv6tests/UdpTest.java Fri Jan 17 13:54:13 2014 +0000 +++ b/jdk/test/java/net/ipv6tests/UdpTest.java Fri Jan 17 14:03:57 2014 +0000 @@ -147,6 +147,7 @@ final InetAddress ia6 = ia6addr; final int port = s1.getLocalPort(); + s1.setSoTimeout(10000); runAfter (2000, new Runnable () { public void run () { try { @@ -157,7 +158,7 @@ }); t1 = System.currentTimeMillis(); s1.receive (new DatagramPacket (new byte [128], 128)); - checkTime (System.currentTimeMillis() - t1, 2000); + checkTime (System.currentTimeMillis() - t1, 4000); s1.close (); s2.close (); System.out.println ("Test2: OK");