summaryrefslogtreecommitdiff
path: root/src/leap/common/tests/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/common/tests/test_http.py')
-rw-r--r--src/leap/common/tests/test_http.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/common/tests/test_http.py b/src/leap/common/tests/test_http.py
index e240ca3..a586fd1 100644
--- a/src/leap/common/tests/test_http.py
+++ b/src/leap/common/tests/test_http.py
@@ -47,7 +47,12 @@ class HTTPClientTest(BaseLeapTest):
self.assertEquals(client._agent._pool, client2._agent._pool, "Pool was not reused by default")
def test_agent_can_have_dedicated_custom_pool(self):
- custom_pool = http.createPool(maxPersistentPerHost=42, persistent=False)
+ custom_pool = http._HTTPConnectionPool(
+ None,
+ timeout=10,
+ maxPersistentPerHost=42,
+ persistent=False
+ )
self.assertEquals(custom_pool.maxPersistentPerHost, 42,
"Custom persistent connections limit is not being respected")
self.assertFalse(custom_pool.persistent,