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:
Oleg Kalnichevski 2013-08-09 11:37:43 +00:00
parent 6bcb8e0b5f
commit 23f6255cd7
1 changed files with 2 additions and 5 deletions

View File

@ -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);