From 938d28fd942c4a1921631e9afab0b690b2b1fe74 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 8 Sep 2015 21:00:28 +0300 Subject: Don't use proxy port blocked by Firefox Change-Id: I32d09c17ecbc65442305bb9e6853ff19b6dcfda4 --- uitest/src/com/vaadin/tests/tb3/MultiBrowserTestWithProxy.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTestWithProxy.java b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTestWithProxy.java index f8b01fb11b..460006b7f8 100755 --- a/uitest/src/com/vaadin/tests/tb3/MultiBrowserTestWithProxy.java +++ b/uitest/src/com/vaadin/tests/tb3/MultiBrowserTestWithProxy.java @@ -50,8 +50,14 @@ public abstract class MultiBrowserTestWithProxy extends MultiBrowserTest { protected Integer getProxyPort() { if (proxyPort == null) { - // Assumes we can use any port >= 2000 + // Assumes we can use any port >= 2000, + // except for 2049 in Firefox... proxyPort = availablePort.addAndGet(1); + if (proxyPort == 2049) { + // Restricted in Firefox, see + // http://www-archive.mozilla.org/projects/netlib/PortBanning.html#portlist + proxyPort = availablePort.addAndGet(1); + } } return proxyPort; } -- cgit v1.2.3