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 committed 2026-09-05 21:58:45 +08:00
1 parent 1adc1b47b7
commit e12ef7f272
1 file changed
+2 -2
+2 -2
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