Skip to content

Commit

Permalink
Minor tests fix in test_many_requests() - default max connections number
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyryk committed May 6, 2016
1 parent 26793e9 commit e4617ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def test(objects):
def test_many_requests(self):
@asyncio.coroutine
def test(objects):
max_connections = getattr(objects.database, 'max_connections', 0)
max_connections = getattr(objects.database, 'max_connections', 1)
text = "Test %s" % uuid.uuid4()
obj = yield from objects.create(TestModel, text=text)
n = 2 * max_connections # number of requests
Expand Down

0 comments on commit e4617ed

Please sign in to comment.