Skip to content

Commit 07a2d75

Browse files
author
Stephane Landelle
committed
Fix remote tests
1 parent b163c0d commit 07a2d75

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/test/java/com/ning/http/client/async/RemoteSiteTest.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -191,23 +191,7 @@ public void testUrlRequestParametersEncoding() throws Throwable {
191191
String requestUrl2 = URL + URLEncoder.encode(REQUEST_PARAM, "UTF-8");
192192
log.info(String.format("Executing request [%s] ...", requestUrl2));
193193
Response response = client.prepareGet(requestUrl2).execute().get();
194-
Assert.assertEquals(response.getStatusCode(), 301);
195-
} finally {
196-
client.close();
197-
}
198-
}
199-
200-
/**
201-
* See https://issues.sonatype.org/browse/AHC-61
202-
*
203-
* @throws Throwable
204-
*/
205-
@Test(groups = { "online", "default_provider" })
206-
public void testAHC60() throws Throwable {
207-
AsyncHttpClient client = getAsyncHttpClient(null);
208-
try {
209-
Response response = client.prepareGet("http://www.meetup.com/stackoverflow/Mountain-View-CA/").execute().get();
210-
Assert.assertEquals(response.getStatusCode(), 200);
194+
Assert.assertEquals(response.getStatusCode(), 302);
211195
} finally {
212196
client.close();
213197
}

src/test/java/com/ning/http/client/async/netty/NettyRemoteSiteTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,4 @@ public class NettyRemoteSiteTest extends RemoteSiteTest {
2525
public AsyncHttpClient getAsyncHttpClient(AsyncHttpClientConfig config) {
2626
return ProviderUtil.nettyProvider(config);
2727
}
28-
29-
3028
}

0 commit comments

Comments
 (0)