Take last host if multiple defined

This commit is contained in:
Don Brown
2014-04-01 12:06:11 -06:00
parent 9f5bdb3926
commit 924825d6b4
2 changed files with 8 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class TestMongoConnectionMethods(MongoTest):
@async
def test_pool_multiple_hosts(self):
# MongoConnectionPool returns deferred, which gets MongoAPI
pool = asyncio_mongo.Pool.create(url="mongodb://{host}:{port},otherhost:333".format(
pool = asyncio_mongo.Pool.create(url="mongodb://blahhost:333,{host}:{port}".format(
host=mongo_host, port=mongo_port), poolsize=2)
self.assertTrue(inspect.isgenerator(pool))
rapi = yield from pool