From f3b5d854ca309dac07436ab0cea7bc3a12c5061b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 24 Jul 2017 10:57:47 -0700 Subject: [PATCH] Fix slow hypothesis test --- daphne/tests/test_ws.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daphne/tests/test_ws.py b/daphne/tests/test_ws.py index ceb1deb..f03655a 100644 --- a/daphne/tests/test_ws.py +++ b/daphne/tests/test_ws.py @@ -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)