1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix a test failure when test run and gns3server is running

This commit is contained in:
Julien Duponchelle 2016-11-03 14:27:03 +01:00
parent 0d6adb0620
commit 382d8887d5
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -201,7 +201,8 @@ def test_import_remote_gns3vm_1_x(controller, controller_config_path, async_run)
with open(os.path.join(config_dir, "gns3_gui.conf"), "w+") as f:
json.dump(gns3_gui_conf, f)
async_run(controller.load())
with asyncio_patch("gns3server.controller.compute.Compute.connect"):
async_run(controller.load())
assert controller.gns3vm.settings["engine"] == "remote"
assert controller.gns3vm.settings["vmname"] == "http://127.0.0.1:3081"