Tests: don't try to return response when "no_recv" is True.
This commit is contained in:
@@ -43,10 +43,9 @@ class TestApplicationWebsocket(TestApplicationProto):
|
||||
'Sec-WebSocket-Version': 13,
|
||||
}
|
||||
|
||||
_, sock = self.get(
|
||||
sock = self.get(
|
||||
headers=headers,
|
||||
no_recv=True,
|
||||
start=True,
|
||||
)
|
||||
|
||||
resp = ''
|
||||
|
||||
@@ -104,6 +104,9 @@ class TestHTTP:
|
||||
|
||||
resp = self.recvall(sock, **recvall_kwargs).decode(encoding)
|
||||
|
||||
else:
|
||||
return sock
|
||||
|
||||
self.log_in(resp)
|
||||
|
||||
if 'raw_resp' not in kwargs:
|
||||
|
||||
Reference in New Issue
Block a user