Don't pass `options` to pool creation
Options, in the pool constructor, are taken from the extra keywords. Passing `options` generates: 'options': {'options': {}} Change-Id: I765e34497e7184f4500f365b46d1c9dff13a2ecb
This commit is contained in:
parent
8104ff488b
commit
b35689d749
|
@ -150,8 +150,7 @@ class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
|
||||||
def test_pool_update(self):
|
def test_pool_update(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
'group': 'us',
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017',
|
'uri': 'mongodb://127.0.0.1:27017'}
|
||||||
'options': {}}
|
|
||||||
|
|
||||||
pool = self.client.pool('test', **pool_data)
|
pool = self.client.pool('test', **pool_data)
|
||||||
self.addCleanup(pool.delete)
|
self.addCleanup(pool.delete)
|
||||||
|
@ -161,8 +160,7 @@ class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
|
||||||
def test_pool_list(self):
|
def test_pool_list(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
'group': 'us',
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017',
|
'uri': 'mongodb://127.0.0.1:27017'}
|
||||||
'options': {}}
|
|
||||||
pool = self.client.pool('test', **pool_data)
|
pool = self.client.pool('test', **pool_data)
|
||||||
self.addCleanup(pool.delete)
|
self.addCleanup(pool.delete)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue