Reverted previous change
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6bcb8e0b5f
commit
23f6255cd7
|
@ -223,15 +223,12 @@ public class TestBasicHttpClientConnectionManager {
|
||||||
|
|
||||||
Mockito.when(conn.isOpen()).thenReturn(Boolean.TRUE, Boolean.FALSE);
|
Mockito.when(conn.isOpen()).thenReturn(Boolean.TRUE, Boolean.FALSE);
|
||||||
|
|
||||||
mgr.releaseConnection(conn1, null, 1, TimeUnit.MILLISECONDS);
|
mgr.releaseConnection(conn1, null, 10, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
Assert.assertEquals(route, mgr.getRoute());
|
Assert.assertEquals(route, mgr.getRoute());
|
||||||
Assert.assertEquals(null, mgr.getState());
|
Assert.assertEquals(null, mgr.getState());
|
||||||
|
|
||||||
try {
|
Thread.sleep(50);
|
||||||
Thread.sleep(50);
|
|
||||||
} catch (InterruptedException ignore) {
|
|
||||||
}
|
|
||||||
|
|
||||||
final ConnectionRequest connRequest2 = mgr.requestConnection(route, null);
|
final ConnectionRequest connRequest2 = mgr.requestConnection(route, null);
|
||||||
final HttpClientConnection conn2 = connRequest2.get(0, TimeUnit.MILLISECONDS);
|
final HttpClientConnection conn2 = connRequest2.get(0, TimeUnit.MILLISECONDS);
|
||||||
|
|
Loading…
Reference in New Issue