Skip to content

Commit 5eb0fd7

Browse files
author
Stephane Landelle
committed
Fix previous commit
1 parent 6a2567e commit 5eb0fd7

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

providers/netty/src/test/java/org/asynchttpclient/providers/netty/RetryNonBlockingIssue.java

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -156,48 +156,6 @@ public void testRetryNonBlockingAsyncConnect() throws IOException, InterruptedEx
156156
}
157157
}
158158

159-
@Test
160-
public void testRetryBlocking() throws IOException, InterruptedException, ExecutionException {
161-
162-
NettyAsyncHttpProviderConfig nettyConfig = new NettyAsyncHttpProviderConfig();
163-
nettyConfig.setUseBlockingIO(true);
164-
165-
AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder()//
166-
.setAllowPoolingConnection(true)//
167-
.setMaximumConnectionsTotal(100)//
168-
.setConnectionTimeoutInMs(60000)//
169-
.setRequestTimeoutInMs(30000)//
170-
.setAsyncHttpClientProviderConfig(nettyConfig)//
171-
.build();
172-
173-
AsyncHttpClient client = getAsyncHttpClient(config);
174-
175-
try {
176-
List<ListenableFuture<Response>> res = new ArrayList<ListenableFuture<Response>>();
177-
for (int i = 0; i < 32; i++) {
178-
res.add(testMethodRequest(client, 3, "servlet", UUID.randomUUID().toString()));
179-
}
180-
181-
StringBuilder b = new StringBuilder();
182-
for (ListenableFuture<Response> r : res) {
183-
Response theres = r.get();
184-
assertEquals(theres.getStatusCode(), 200);
185-
b.append("==============\r\n");
186-
b.append("Response Headers\r\n");
187-
Map<String, List<String>> heads = theres.getHeaders();
188-
b.append(heads + "\r\n");
189-
b.append("==============\r\n");
190-
assertTrue(heads.size() > 0);
191-
192-
}
193-
System.out.println(b.toString());
194-
System.out.flush();
195-
196-
} finally {
197-
client.close();
198-
}
199-
}
200-
201159
@SuppressWarnings("serial")
202160
public class MockExceptionServlet extends HttpServlet {
203161

0 commit comments

Comments
 (0)