Skip to content

Commit

Permalink
added testing for reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
jbecla committed Mar 10, 2015
1 parent ec0dc5f commit baadc1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testDbPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def testBasics(self):
dbPool.getConn("a").execCommand0("SHOW DATABASES LIKE '%Stripe82%'")
dbPool.getConn("b").execCommand0("SHOW DATABASES LIKE '%Stripe82%'")
dbPool.getConn("c").execCommand0("SHOW DATABASES LIKE '%Stripe82%'")
dbPool.getConn("a").disconnect()
dbPool.getConn("a").execCommand0("SHOW DATABASES LIKE '%Stripe82%'")
dbPool.delConn("b")
dbPool.getConn("a").execCommand0("SHOW DATABASES LIKE '%Stripe82%'")
self.assertRaises(DbPoolException, dbPool.getConn, "b")
Expand Down

0 comments on commit baadc1a

Please sign in to comment.