Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public void asyncOptionsTest() throws Throwable {
// Some responses contain the TRACE method, some do not - account for both
final String[] expected = {"GET", "HEAD", "OPTIONS", "POST"};
final String[] expectedWithTrace = {"GET", "HEAD", "OPTIONS", "POST", "TRACE"};
Future<String> f = client.prepareOptions("https://www.shieldblaze.com/").execute(new AsyncHandlerAdapter() {
Future<String> f = client.prepareOptions("https://www.google.com/").execute(new AsyncHandlerAdapter() {

@Override
public State onHeadersReceived(HttpHeaders headers) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testNativeTransportWithEpollOnly() throws Exception {
AsyncHttpClientConfig config = config().setUseNativeTransport(true).setUseOnlyEpollNativeTransport(true).build();

try (DefaultAsyncHttpClient client = (DefaultAsyncHttpClient) asyncHttpClient(config)) {
assertDoesNotThrow(() -> client.prepareGet("https://www.shieldblaze.com").execute().get());
assertDoesNotThrow(() -> client.prepareGet("https://www.google.com").execute().get());
assertInstanceOf(EpollEventLoopGroup.class, client.channelManager().getEventLoopGroup());
}
}
Expand All @@ -60,7 +60,7 @@ public void testNativeTransportWithEpollOnly() throws Exception {
public void testNativeTransportWithoutEpollOnly() throws Exception {
AsyncHttpClientConfig config = config().setUseNativeTransport(true).setUseOnlyEpollNativeTransport(false).build();
try (DefaultAsyncHttpClient client = (DefaultAsyncHttpClient) asyncHttpClient(config)) {
assertDoesNotThrow(() -> client.prepareGet("https://www.shieldblaze.com").execute().get());
assertDoesNotThrow(() -> client.prepareGet("https://www.google.com").execute().get());
assertInstanceOf(IOUringEventLoopGroup.class, client.channelManager().getEventLoopGroup());
}
}
Expand All @@ -70,7 +70,7 @@ public void testNativeTransportWithoutEpollOnly() throws Exception {
public void testNativeTransportKQueueOnMacOs() throws Exception {
AsyncHttpClientConfig config = config().setUseNativeTransport(true).build();
try (DefaultAsyncHttpClient client = (DefaultAsyncHttpClient) asyncHttpClient(config)) {
assertDoesNotThrow(() -> client.prepareGet("https://www.shieldblaze.com").execute().get());
assertDoesNotThrow(() -> client.prepareGet("https://www.google.com").execute().get());
assertInstanceOf(KQueueEventLoopGroup.class, client.channelManager().getEventLoopGroup());
}
}
Expand Down