Skip to content

The agent that grows with you

test(gateway): accept keyword args in _connect_adapter_with_timeout mocks

Tekniumf8d75db026bf
diff --git a/tests/gateway/test_multiplex_adapter_registry.py b/tests/gateway/test_multiplex_adapter_registry.py
index bcb2c29dfa0..4b3bbb93ca5 100644
--- a/tests/gateway/test_multiplex_adapter_registry.py
+++ b/tests/gateway/test_multiplex_adapter_registry.py
@@ -409,7 +409,7 @@ class TestSecondaryProfileConfigHandling:
GatewayRunner._adapter_listener_claim(photon, primary): "default"
}
- async def _connect(adapter, platform):
+ async def _connect(adapter, platform, **_kw):
adapter.connected = True
return True
@@ -468,7 +468,7 @@ class TestSecondaryProfileConfigHandling:
adapters = iter((failed, later))
claimed = {}
- async def _connect(adapter, platform):
+ async def _connect(adapter, platform, **_kw):
return adapter.should_connect
monkeypatch.setattr("gateway.config.load_gateway_config", lambda: profile_cfg)