changeset 13506:2e4283de3be9

8031666: TEST_BUG: java/net/ipv6tests/UdpTest.java failed because of SocketTimeoutException Reviewed-by: alanb, chegar
author tyan
date Fri, 17 Jan 2014 14:03:57 +0000
parents e993056564d3
children e4cc513c7a91
files test/java/net/ipv6tests/UdpTest.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/net/ipv6tests/UdpTest.java	Thu Feb 07 13:57:12 2019 +0000
+++ b/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");