Fix Docker console test.

This commit is contained in:
grossmj committed 2018-11-30 18:59:02 +08:00
1 parent bec2270334
commit 58b2ee152d
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -671,7 +671,7 @@ class DockerVM(BaseNode):
while True:
msg = await ws.receive()
if msg.type == aiohttp.WSMsgType.text:
if msg.type == aiohttp.WSMsgType.TEXT:
out.feed_data(msg.data.encode())
elif msg.type == aiohttp.WSMsgType.BINARY:
out.feed_data(msg.data)