MCPcopy
hub / github.com/aio-libs/aiohttp / test_concurrent_receive

Method test_concurrent_receive

tests/test_web_websocket.py:351–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 RuntimeError, self.loop.run_until_complete, ws.receive())
350
351 def test_concurrent_receive(self):
352 req = self.make_request('GET', '/')
353 ws = WebSocketResponse()
354 self.loop.run_until_complete(ws.prepare(req))
355 ws._waiting = True
356
357 self.assertRaises(
358 RuntimeError, self.loop.run_until_complete, ws.receive())
359
360 def test_close_exc(self):
361 req = self.make_request('GET', '/')

Callers

nothing calls this directly

Calls 4

make_requestMethod · 0.95
prepareMethod · 0.95
receiveMethod · 0.95
WebSocketResponseClass · 0.90

Tested by

no test coverage detected