提交 0e700124 编写于 作者: K Kohsuke Kawaguchi

This test is failing randomly, so extending the timeout

上级 a38b4126
......@@ -24,7 +24,7 @@ public class UDPBroadcastThreadTest extends HudsonTestCase {
public void testLegacy() throws Exception {
DatagramSocket s = new DatagramSocket();
sendQueryTo(s, InetAddress.getLocalHost());
s.setSoTimeout(5000); // to prevent test hang
s.setSoTimeout(15000); // to prevent test hang
receiveAndVerify(s);
}
......@@ -39,7 +39,7 @@ public class UDPBroadcastThreadTest extends HudsonTestCase {
try {
DatagramSocket s = new DatagramSocket();
sendQueryTo(s, UDPBroadcastThread.MULTICAST);
s.setSoTimeout(5000); // to prevent test hang
s.setSoTimeout(15000); // to prevent test hang
// we should at least get two replies since we run two broadcasts
receiveAndVerify(s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册