From 11ef925b57673d00409059dd8337fed8859ba3c9 Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Wed, 17 Oct 2012 11:14:53 -0500 Subject: [PATCH] Increase pool timeout in large tests --- tests/test_autopacking.py | 2 +- tests/test_columnfamily.py | 3 ++- tests/test_columnfamilymap.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_autopacking.py b/tests/test_autopacking.py index 33c23124..27e8a3a3 100644 --- a/tests/test_autopacking.py +++ b/tests/test_autopacking.py @@ -34,7 +34,7 @@ def setup_module(): global pool credentials = {'username': 'jsmith', 'password': 'havebadpass'} - pool = ConnectionPool(TEST_KS, pool_size=10, credentials=credentials) + pool = ConnectionPool(TEST_KS, pool_size=10, credentials=credentials, timeout=1.0) def teardown_module(): pool.dispose() diff --git a/tests/test_columnfamily.py b/tests/test_columnfamily.py index 5987b4f5..6c660441 100644 --- a/tests/test_columnfamily.py +++ b/tests/test_columnfamily.py @@ -12,7 +12,8 @@ def setup_module(): global pool, cf, scf, indexed_cf, counter_cf, counter_scf, sys_man credentials = {'username': 'jsmith', 'password': 'havebadpass'} - pool = ConnectionPool(keyspace='PycassaTestKeyspace', credentials=credentials) + pool = ConnectionPool(keyspace='PycassaTestKeyspace', + credentials=credentials, timeout=1.0) cf = ColumnFamily(pool, 'Standard1', dict_class=TestDict) scf = ColumnFamily(pool, 'Super1', dict_class=dict) indexed_cf = ColumnFamily(pool, 'Indexed1') diff --git a/tests/test_columnfamilymap.py b/tests/test_columnfamilymap.py index b721db64..d2cab7c6 100644 --- a/tests/test_columnfamilymap.py +++ b/tests/test_columnfamilymap.py @@ -18,7 +18,8 @@ def setup_module(): global pool, sys_man credentials = {'username': 'jsmith', 'password': 'havebadpass'} - pool = ConnectionPool(keyspace='PycassaTestKeyspace', credentials=credentials) + pool = ConnectionPool(keyspace='PycassaTestKeyspace', + credentials=credentials, timeout=1.0) sys_man = SystemManager() def teardown_module():