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:
Don Brown
2014-02-16 01:33:39 -07:00
parent 416c181415
commit 06bdf73134
4 changed files with 20 additions and 22 deletions

View File

@@ -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__)