From 382d8887d5b9fd8e7480ad1776ebf512d8525d50 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 3 Nov 2016 14:27:03 +0100 Subject: [PATCH] Fix a test failure when test run and gns3server is running --- tests/controller/test_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/controller/test_controller.py b/tests/controller/test_controller.py index c7b56f66..d7cac05e 100644 --- a/tests/controller/test_controller.py +++ b/tests/controller/test_controller.py @@ -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"