Skip to content

Commit

Permalink
[FLINK-2376] Raise the time limit in testFindConnectableAddress under…
Browse files Browse the repository at this point in the history
… Windows

This closes apache#920
  • Loading branch information
ggevay authored and StephanEwen committed Jul 21, 2015
1 parent 0818bec commit bbbfd22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import static org.junit.Assert.*;

import org.apache.flink.util.OperatingSystem;
import org.junit.Test;

import java.net.InetAddress;
Expand Down Expand Up @@ -49,7 +50,7 @@ public void testFindConnectableAddress() {
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);
Expand Down

0 comments on commit bbbfd22

Please sign in to comment.