mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
Fix Docker console test.
This commit is contained in:
1 parent
bec2270334
commit
58b2ee152d
2 files changed
+4
-4
No files matched your search
@@ -1037,11 +1037,11 @@ def test_read_console_output_with_binary_mode(vm, loop):
|
||||
async def receive(self):
|
||||
if not self.sent:
|
||||
self.sent = True
|
||||
return MagicMock(tp=aiohttp.WSMsgType.BINARY, data=b"test")
|
||||
return MagicMock(type=aiohttp.WSMsgType.BINARY, data=b"test")
|
||||
else:
|
||||
return MagicMock(tp=aiohttp.WSMsgType.CLOSE)
|
||||
return MagicMock(type=aiohttp.WSMsgType.CLOSE)
|
||||
|
||||
def close(self):
|
||||
async def close(self):
|
||||
pass
|
||||
|
||||
input_stream = InputStreamMock()
|
||||
|
||||
Reference in new issue
Block a user