You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2015/07/21 21:10:54 UTC

[15/26] flink git commit: [FLINK-2376] Raise the time limit in testFindConnectableAddress under Windows

[FLINK-2376] Raise the time limit in testFindConnectableAddress under Windows

This closes #920


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/bbbfd220
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/bbbfd220
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/bbbfd220

Branch: refs/heads/master
Commit: bbbfd22077623633363d656d66a00028e7fea631
Parents: 0818bec
Author: Gabor Gevay <gg...@gmail.com>
Authored: Fri Jul 17 17:19:33 2015 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Tue Jul 21 17:58:15 2015 +0200

----------------------------------------------------------------------
 .../src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/bbbfd220/flink-runtime/src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java
index 3794fa0..fe4c82c 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/net/NetUtilsTest.java
@@ -19,6 +19,7 @@ package org.apache.flink.runtime.net;
 
 import static org.junit.Assert.*;
 
+import org.apache.flink.util.OperatingSystem;
 import org.junit.Test;
 
 import java.net.InetAddress;
@@ -49,7 +50,7 @@ public class NetUtilsTest {
 			InetAddress add = NetUtils.findConnectingAddress(unreachable, 2000, 400);
 
 			// check that it did not take forever
-			assertTrue(System.currentTimeMillis() - start < 8000);
+			assertTrue(System.currentTimeMillis() - start < (OperatingSystem.isWindows() ? 30000 : 8000));
 
 			// we should have found a heuristic address
 			assertNotNull(add);