mirror of
https://github.com/django/daphne.git
synced 2024-11-25 09:13:44 +03:00
Fix flaky test that times out on Python 3.5 only
This commit is contained in:
parent
fbb080c600
commit
cf7e7f3924
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user