mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-07 02:25:21 +03:00
tests: expect port_number in adapter carrier calls
Upstream #2870's carrier tests assert the two-argument _set_adapter_carrier call; the 4-port-unit commit threads port_number through every carrier call site, so single-port adapters now pass 0.
This commit is contained in:
parent
1adc1b47b7
commit
e12ef7f272
@ -1798,7 +1798,7 @@ async def test_adapter_add_nio_binding_sets_carrier(vm):
|
||||
|
||||
await vm.adapter_add_nio_binding(0, nio)
|
||||
|
||||
vm._set_adapter_carrier.assert_called_once_with(0, True)
|
||||
vm._set_adapter_carrier.assert_called_once_with(0, True, 0)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@ -1831,7 +1831,7 @@ async def test_adapter_update_nio_binding_sets_suspended_carrier(vm):
|
||||
|
||||
await vm.adapter_update_nio_binding(0, nio)
|
||||
|
||||
vm._set_adapter_carrier.assert_called_once_with(0, False)
|
||||
vm._set_adapter_carrier.assert_called_once_with(0, False, 0)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user