Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove pool cleaner unit test.

  • Loading branch information...
commit ef3cca6c7b7f7a406e5343a5c60a7d8ca52370d0 1 parent cb11547
Frank Smit authored
Showing with 1 addition and 21 deletions.
  1. +1 −21 tests.py
22 tests.py
View
@@ -110,9 +110,7 @@ def set_up(self):
self.db = momoko.Pool(
dsn=dsn,
register_hstore=test_hstore,
- minconn=1,
- maxconn=10,
- cleanup_timeout=0,
+ size=3,
callback=self.stop,
ioloop=self.io_loop
)
@@ -215,24 +213,6 @@ def test_transaction_rollback(self):
cursor = self.wait_for_result()
self.assert_equal(cursor.fetchone(), (0,))
- def test_pool_cleaner(self):
- self.db._clean_pool()
- self.assert_equal(len(self.db._pool), 1)
-
- @gen.engine
- def func():
- yield [
- gen.Task(self.db.execute, 'SELECT 1;'),
- gen.Task(self.db.execute, 'SELECT 1;'),
- gen.Task(self.db.execute, 'SELECT 1;'),
- ]
- self.stop()
-
- self.run_gen(func)
- self.assert_equal(len(self.db._pool), 3)
- self.db._clean_pool()
- self.assert_equal(len(self.db._pool), 1)
-
def test_op(self):
@gen.engine
def func():
Please sign in to comment.
Something went wrong with that request. Please try again.