Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increase pool timeout in large tests
  • Loading branch information
thobbs committed Oct 17, 2012
1 parent efe0dd9 commit 11ef925
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_autopacking.py
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_columnfamily.py
Expand Up @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion tests/test_columnfamilymap.py
Expand Up @@ -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():
Expand Down

0 comments on commit 11ef925

Please sign in to comment.