Use constant PORT rather than literal in test code (#266)

This commit is contained in:
Jeong YunWon 2017-01-04 05:40:13 +09:00 committed by Eli Uriegas
parent 4ccc782e29
commit e6eb697bb2

View File

@ -35,7 +35,7 @@ def sanic_endpoint_test(app, method='get', uri='/', gather_request=True,
exceptions.append(e) exceptions.append(e)
app.stop() app.stop()
app.run(host=HOST, debug=debug, port=42101, app.run(host=HOST, debug=debug, port=PORT,
after_start=_collect_response, loop=loop, **server_kwargs) after_start=_collect_response, loop=loop, **server_kwargs)
if exceptions: if exceptions: