Permalink
Browse files

Unbelievably, on some networks a machine will respond to address 1.2.…

…3.4, so choose 127.0.0.1 on port 4 (unused) for the connection fail tests

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/tags/jetty-8.0.0.M0@1332 7e9141cc-0065-0410-87d8-b60c137991c4
  • Loading branch information...
1 parent ec115fd commit e6822fabb0f4c33670771552ba14a5a3aabec239 Jan Bartel committed Mar 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 jetty-client/src/test/java/org/eclipse/jetty/client/ConnectionTest.java
@@ -70,7 +70,7 @@ public void testConnectionTimeoutWithSocketConnector() throws Exception
CountDownLatch latch = new CountDownLatch(1);
HttpExchange exchange = new ConnectionExchange(latch);
// Using a IP address has a different behavior than using a host name
- exchange.setAddress(new Address("1.2.3.4", 8080));
+ exchange.setAddress(new Address("127.0.0.1", 4));
exchange.setURI("/");
httpClient.send(exchange);
@@ -99,7 +99,7 @@ public void testConnectionTimeoutWithSelectConnector() throws Exception
CountDownLatch latch = new CountDownLatch(1);
HttpExchange exchange = new ConnectionExchange(latch);
// Using a IP address has a different behavior than using a host name
- exchange.setAddress(new Address("1.2.3.4", 8080));
+ exchange.setAddress(new Address("127.0.0.1", 4));
exchange.setURI("/");
httpClient.send(exchange);

0 comments on commit e6822fa

Please sign in to comment.