From cf7e7f3924fb6e04e120283952f72896197dd0a4 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 16 Jun 2017 10:50:20 +0800 Subject: [PATCH] Fix flaky test that times out on Python 3.5 only --- daphne/tests/test_http_response.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daphne/tests/test_http_response.py b/daphne/tests/test_http_response.py index a650deb..1ee27b1 100644 --- a/daphne/tests/test_http_response.py +++ b/daphne/tests/test_http_response.py @@ -7,7 +7,7 @@ from __future__ import unicode_literals from unittest import TestCase from asgiref.inmemory import ChannelLayer -from hypothesis import given +from hypothesis import given, settings from twisted.test import proto_helpers from daphne.http_protocol import HTTPFactory @@ -70,8 +70,9 @@ class TestHTTPResponseSpec(testcases.ASGIHTTPTestCase): @given( headers=http_strategies.headers(), - body=http_strategies.http_body() + body=http_strategies.http_body(), ) + @settings(perform_health_check=False) def test_kitchen_sink(self, headers, body): """ This tests tries to let Hypothesis find combinations of variables that result