From 05df0a9bb68b0a2d06f14d130826ecb8b567d487 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 8 Jul 2016 11:03:52 +0200 Subject: [PATCH] Fix tests when run without local network Fixed in the train :) --- tests/compute/virtualbox/test_virtualbox_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compute/virtualbox/test_virtualbox_vm.py b/tests/compute/virtualbox/test_virtualbox_vm.py index fed2df49..635002a2 100644 --- a/tests/compute/virtualbox/test_virtualbox_vm.py +++ b/tests/compute/virtualbox/test_virtualbox_vm.py @@ -57,7 +57,7 @@ def test_vm_invalid_virtualbox_api_version(loop, project, manager): def test_vm_adapter_add_nio_binding_adapter_not_exist(loop, vm, manager, free_console_port): - nio = manager.create_nio({"type": "nio_udp", "lport": free_console_port, "rport": free_console_port, "rhost": "192.168.1.2"}) + nio = manager.create_nio({"type": "nio_udp", "lport": free_console_port, "rport": free_console_port, "rhost": "127.0.0.1"}) with pytest.raises(VirtualBoxError): loop.run_until_complete(asyncio.async(vm.adapter_add_nio_binding(15, nio)))