Fix test_request_timeout.py
This increases sleep time, Because sometimes timeout error does not occur.
This commit is contained in:
parent
80af9e6d76
commit
fac4bca4f4
|
@ -12,7 +12,7 @@ request_timeout_default_app = Sanic('test_request_timeout_default')
|
||||||
|
|
||||||
@request_timeout_app.route('/1')
|
@request_timeout_app.route('/1')
|
||||||
async def handler_1(request):
|
async def handler_1(request):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(2)
|
||||||
return text('OK')
|
return text('OK')
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ def test_server_error_request_timeout():
|
||||||
|
|
||||||
@request_timeout_default_app.route('/1')
|
@request_timeout_default_app.route('/1')
|
||||||
async def handler_2(request):
|
async def handler_2(request):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(2)
|
||||||
return text('OK')
|
return text('OK')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user