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:
YueGuobin 2026-09-05 21:58:44 +08:00
parent 1adc1b47b7
commit e12ef7f272
No known key found for this signature in database

View File

@ -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