Do not automatically connect to local compute.

This commit is contained in:
grossmj committed 2020-10-22 16:47:11 +10:30
1 parent a92c47b310
commit 13da8aa8f5
3 files changed
+7 -6

No files matched your search

+3 -3
View File
@@ -295,9 +295,9 @@ async def test_start(controller):
"vmname": "GNS3 VM"
}
with asyncio_patch("gns3server.controller.compute.Compute.connect") as mock:
await controller.start()
assert mock.called
#with asyncio_patch("gns3server.controller.compute.Compute.connect") as mock:
await controller.start()
#assert mock.called
assert len(controller.computes) == 1 # Local compute is created
assert controller.computes["local"].name == socket.gethostname()