Fix tests to work with new version of aiohttp (>= 3.0)

This commit is contained in:
grossmj
2018-10-17 17:32:10 +07:00
parent 9ae9209881
commit ab8dc52ece
18 changed files with 218 additions and 184 deletions

View File

@ -52,10 +52,9 @@ class NotificationHandler:
while True:
try:
msg = await queue.get_json(5)
response.write(("{}\n".format(msg)).encode("utf-8"))
await response.write(("{}\n".format(msg)).encode("utf-8"))
except asyncio.futures.CancelledError:
break
await response.drain()
@Route.get(
r"/notifications/ws",