mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 15:53:47 +00:00
Fix link filters/suspend tests.
This commit is contained in:
@ -130,8 +130,9 @@ def test_update_ubridge_udp_connection(node, async_run):
|
||||
"latency": [10]
|
||||
}
|
||||
|
||||
snio = NIOUDP(1245, "localhost", 1246, {})
|
||||
dnio = NIOUDP(1245, "localhost", 1244, filters)
|
||||
snio = NIOUDP(1245, "localhost", 1246)
|
||||
dnio = NIOUDP(1245, "localhost", 1244)
|
||||
dnio.filters = filters
|
||||
with asyncio_patch("gns3server.compute.base_node.BaseNode._ubridge_apply_filters") as mock:
|
||||
async_run(node.update_ubridge_udp_connection('VPCS-10', snio, dnio))
|
||||
mock.assert_called_with("VPCS-10", filters)
|
||||
|
Reference in New Issue
Block a user