summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java')
-rw-r--r--org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java b/org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java
index ff85ec8..a2b8284 100644
--- a/org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java
+++ b/org.eclipse.mylyn.commons.repositories.http.tests/src/org/eclipse/mylyn/commons/repositories/http/tests/HttpUtilTest.java
@@ -67,13 +67,14 @@ public class HttpUtilTest {
@Test
public void testGetRequestPoolConnections() throws Exception {
- HttpRequestBase request = new HttpGet("http://" + proxyAddress.toString());
+ String url = "http://" + proxyAddress.getHostName() + ":" + proxyAddress.getPort() + "/";
+ HttpRequestBase request = new HttpGet(url);
HttpUtil.configureClient(client, null);
assertEquals(0, connectionManager.getConnectionsInPool());
HttpResponse response = HttpUtil.execute(client, null, request, null);
- assertEquals(HttpStatus.SC_NOT_FOUND, response.getStatusLine().getStatusCode());
+ assertEquals(HttpStatus.SC_SERVICE_UNAVAILABLE, response.getStatusLine().getStatusCode());
assertEquals(1, connectionManager.getConnectionsInPool());
}