Skip to content

Commit

Permalink
Corrected tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
edevil committed Jul 29, 2013
1 parent 5171ee4 commit 8d664ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_connection_pooling.py
Expand Up @@ -94,7 +94,7 @@ def test_queue_pool(self):
assert_equal(stats_logger.stats['disposed']['success'], 10)

print "in test:", id(conns[-1])
assert_raises(InvalidRequestError, conns[-1].return_to_pool)
conns[-1].return_to_pool()
assert_equal(stats_logger.stats['checked_in'], 20)
assert_equal(stats_logger.stats['disposed']['success'], 10)

Expand Down Expand Up @@ -218,7 +218,7 @@ def test_queue_pool_no_prefill(self):
assert_equal(stats_logger.stats['checked_in'], 20)
assert_equal(stats_logger.stats['disposed']['success'], 10)

assert_raises(InvalidRequestError, conns[-1].return_to_pool)
conns[-1].return_to_pool()
assert_equal(stats_logger.stats['checked_in'], 20)
assert_equal(stats_logger.stats['disposed']['success'], 10)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pool_logger.py
Expand Up @@ -126,7 +126,7 @@ def test_pool(self):
assert_equal(listener.stats['disposed']['success'], 10)

print "in test:", id(conns[-1])
assert_raises(InvalidRequestError, conns[-1].return_to_pool)
conns[-1].return_to_pool()
assert_equal(listener.stats['checked_in'], 20)
assert_equal(listener.stats['disposed']['success'], 10)

Expand Down

0 comments on commit 8d664ba

Please sign in to comment.