From fac4bca4f49c3dc34ff57851d59fba64790d1e31 Mon Sep 17 00:00:00 2001 From: 1a23456789 Date: Tue, 6 Dec 2016 10:44:08 +0900 Subject: [PATCH] Fix test_request_timeout.py This increases sleep time, Because sometimes timeout error does not occur. --- tests/test_request_timeout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_request_timeout.py b/tests/test_request_timeout.py index 7b8cfb21..8cf3a680 100644 --- a/tests/test_request_timeout.py +++ b/tests/test_request_timeout.py @@ -12,7 +12,7 @@ request_timeout_default_app = Sanic('test_request_timeout_default') @request_timeout_app.route('/1') async def handler_1(request): - await asyncio.sleep(1) + await asyncio.sleep(2) return text('OK') @@ -29,7 +29,7 @@ def test_server_error_request_timeout(): @request_timeout_default_app.route('/1') async def handler_2(request): - await asyncio.sleep(1) + await asyncio.sleep(2) return text('OK')