Fix default port, align with asyncio_redis, fix pool
* Pool had broken methods that didn't make sense, so deleted * Fix port to be right mongodb default port * Change pool_size to poolsize to align with asyncio_redis * Write logs to own logger
This commit is contained in:
@@ -36,7 +36,7 @@ class TestMongoConnectionMethods(MongoTest):
|
||||
@async
|
||||
def test_pool(self):
|
||||
# MongoConnectionPool returns deferred, which gets MongoAPI
|
||||
pool = asyncio_mongo.Pool.create(mongo_host, mongo_port, pool_size=2)
|
||||
pool = asyncio_mongo.Pool.create(mongo_host, mongo_port, poolsize=2)
|
||||
self.assertTrue(inspect.isgenerator(pool))
|
||||
rapi = yield from pool
|
||||
print('rapi %s' % rapi.__class__)
|
||||
|
||||
Reference in New Issue
Block a user