HTTPCLIENT-1331: made timeout value less aggressive
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0373fbed65
commit
5f5269f171
|
@ -56,7 +56,7 @@ import org.junit.After;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class HttpClientWithFutureTest {
|
||||
public class TestFutureRequestExecutionService {
|
||||
|
||||
private LocalTestServer localServer;
|
||||
private String uri;
|
||||
|
@ -143,7 +143,7 @@ public class HttpClientWithFutureTest {
|
|||
}
|
||||
final CountingCallback callback = new CountingCallback();
|
||||
httpAsyncClientWithFuture.executeMultiple(null,
|
||||
new OkidokiHandler(), callback , 1000, TimeUnit.MILLISECONDS, requests);
|
||||
new OkidokiHandler(), callback , 10, TimeUnit.SECONDS, requests);
|
||||
Assert.assertEquals(100, callback.completed);
|
||||
Assert.assertEquals(0, callback.cancelled);
|
||||
Assert.assertEquals(0, callback.failed);
|
||||
|
|
Loading…
Reference in New Issue