mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-19 20:55:14 +02:00
Fix creation of link when reloading a project
Fix https://github.com/GNS3/gns3-gui/issues/1457
This commit is contained in:
8 files changed
+192
-107
No files matched your search
@@ -254,7 +254,9 @@ def test_addLink(async_run, project, controller):
|
||||
controller._notification = MagicMock()
|
||||
link = async_run(project.add_link())
|
||||
async_run(link.add_node(vm1, 3, 1))
|
||||
async_run(link.add_node(vm2, 4, 2))
|
||||
with asyncio_patch("gns3server.controller.udp_link.UDPLink.create") as mock_udp_create:
|
||||
async_run(link.add_node(vm2, 4, 2))
|
||||
assert mock_udp_create.called
|
||||
assert len(link._nodes) == 2
|
||||
controller.notification.emit.assert_any_call("link.created", link.__json__())
|
||||
|
||||
|
||||
Reference in new issue
Block a user