mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Fix slow hypothesis test
This commit is contained in:
parent
8fd8f794a4
commit
f3b5d854ca
|
@ -1,7 +1,7 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from hypothesis import assume, given, strategies
|
||||
from hypothesis import assume, given, strategies, settings
|
||||
from twisted.test import proto_helpers
|
||||
|
||||
from asgiref.inmemory import ChannelLayer
|
||||
|
@ -66,6 +66,7 @@ class TestHandshake(testcases.ASGIWebSocketTestCase):
|
|||
params=http_strategies.query_params(),
|
||||
headers=http_strategies.headers(),
|
||||
)
|
||||
@settings(perform_health_check=False)
|
||||
def test_connection(self, path, params, headers):
|
||||
message = WebSocketConnection().connect(path, params, headers)
|
||||
self.assert_valid_websocket_connect_message(message, path, params, headers)
|
||||
|
|
Loading…
Reference in New Issue
Block a user