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

@ -420,9 +420,8 @@ class NodeHandler:
response.content_type = "application/octet-stream"
response.enable_chunked_encoding()
await response.prepare(request)
response.write(res.body)
await response.write_eof()
await response.write(res.body)
# await response.write_eof() #FIXME: shound't be needed anymore
@Route.post(
r"/projects/{project_id}/nodes/{node_id}/files/{path:.+}",