mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-12 09:00:57 +00:00
Fix test
This commit is contained in:
parent
b36c5f25d2
commit
b0fb2fcc6d
@ -154,7 +154,7 @@ def test_add_nio_binding_tap(vm, ethernet_device):
|
|||||||
with patch("gns3server.modules.base_manager.BaseManager._has_privileged_access", return_value=True):
|
with patch("gns3server.modules.base_manager.BaseManager._has_privileged_access", return_value=True):
|
||||||
nio = VPCS.instance().create_nio(vm.vpcs_path, {"type": "nio_tap", "tap_device": ethernet_device})
|
nio = VPCS.instance().create_nio(vm.vpcs_path, {"type": "nio_tap", "tap_device": ethernet_device})
|
||||||
vm.port_add_nio_binding(0, nio)
|
vm.port_add_nio_binding(0, nio)
|
||||||
assert nio.tap_device == "test"
|
assert nio.tap_device == ethernet_device
|
||||||
|
|
||||||
|
|
||||||
# def test_add_nio_binding_tap_no_privileged_access(vm):
|
# def test_add_nio_binding_tap_no_privileged_access(vm):
|
||||||
|
Loading…
Reference in New Issue
Block a user