aboutsummaryrefslogtreecommitdiff
path: root/test/java/net/ipv6tests/UdpTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/java/net/ipv6tests/UdpTest.java')
-rw-r--r--test/java/net/ipv6tests/UdpTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/java/net/ipv6tests/UdpTest.java b/test/java/net/ipv6tests/UdpTest.java
index 8f91ade020..4b3f9b0270 100644
--- a/test/java/net/ipv6tests/UdpTest.java
+++ b/test/java/net/ipv6tests/UdpTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -147,6 +147,7 @@ public class UdpTest extends Tests {
final InetAddress ia6 = ia6addr;
final int port = s1.getLocalPort();
+ s1.setSoTimeout(10000);
runAfter (2000, new Runnable () {
public void run () {
try {
@@ -157,7 +158,7 @@ public class UdpTest extends Tests {
});
t1 = System.currentTimeMillis();
s1.receive (new DatagramPacket (new byte [128], 128));
- checkTime (System.currentTimeMillis() - t1, 2000);
+ checkTime (System.currentTimeMillis() - t1, 2000, 10000);
s1.close ();
s2.close ();
System.out.println ("Test2: OK");