Fix flaky test that times out on Python 3.5 only

This commit is contained in:
Andrew Godwin 2017-06-16 10:50:20 +08:00
parent fbb080c600
commit cf7e7f3924

View File

@ -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