summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-06-14 08:22:12 (EDT)
committerSteffen Pingel2013-06-14 08:22:12 (EDT)
commite13e8df902428023abf5ab46f495aa66aa6ca316 (patch)
treecbd41691fcde3e78c0575ee04cbc849f70bbf4e6
parente4b605fc3253dae0c47f1c1b1376f0e3d7d807a4 (diff)
downloadorg.eclipse.mylyn.commons-e13e8df902428023abf5ab46f495aa66aa6ca316.zip
org.eclipse.mylyn.commons-e13e8df902428023abf5ab46f495aa66aa6ca316.tar.gz
org.eclipse.mylyn.commons-e13e8df902428023abf5ab46f495aa66aa6ca316.tar.bz2
skip cancelation test when firewall blocks connections to port 9999refs/changes/16/13816/1
-rw-r--r--org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java b/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java
index be27169..03466af 100644
--- a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java
+++ b/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java
@@ -13,6 +13,7 @@ package org.eclipse.mylyn.commons.tests.net;
import java.io.IOException;
import java.io.InterruptedIOException;
+import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.Proxy.Type;
@@ -134,6 +135,8 @@ public class WebUtilTest extends TestCase {
fail("Expected OperationCanceledException");
} catch (OperationCanceledException expected) {
assertTrue(monitor.isCanceled());
+ } catch (ConnectException ignored) {
+ System.err.println("Skipping testConnectCancelStalledConnect() due to blocking firewall");
}
}
@@ -175,6 +178,8 @@ public class WebUtilTest extends TestCase {
fail("Expected OperationCanceledException");
} catch (OperationCanceledException expected) {
assertTrue(monitor.isCanceled());
+ } catch (ConnectException ignored) {
+ System.err.println("Skipping testExecuteCancelStalledConnect() due to blocking firewall");
} finally {
WebUtil.releaseConnection(method, monitor);
}