Skip to content

Commit

Permalink
connection_test: Handle num connections may be lower than max
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoo committed Mar 10, 2015
1 parent 55f9aa0 commit 21b1e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpull/connection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def con_fut():
self.assertEqual(1, len(pool.host_pools))
connection_pool_entry = list(pool.host_pools.values())[0]
self.assertIsInstance(connection_pool_entry, HostPool)
self.assertEqual(10, connection_pool_entry.count())
self.assertGreaterEqual(10, connection_pool_entry.count())

@wpull.testing.async.async_test(timeout=DEFAULT_TIMEOUT)
def test_over_host_max_limit_cycling(self):
Expand All @@ -232,7 +232,7 @@ def con_fut():
self.assertEqual(1, len(pool.host_pools))
connection_pool_entry = list(pool.host_pools.values())[0]
self.assertIsInstance(connection_pool_entry, HostPool)
self.assertEqual(10, connection_pool_entry.count())
self.assertGreaterEqual(10, connection_pool_entry.count())

@wpull.testing.async.async_test(timeout=DEFAULT_TIMEOUT)
def test_multiple_hosts(self):
Expand Down

0 comments on commit 21b1e1d

Please sign in to comment.