fix: unit tests changes to account for address changes

ref: N25B-205
This commit is contained in:
Björn Otgaar
2025-10-22 11:12:58 +02:00
parent 63590bd5a3
commit 77c6704632

View File

@@ -88,7 +88,7 @@ async def test_setup_creates_socket_and_negotiate_1(monkeypatch):
MockCommandAgent.assert_called_once_with(
ANY, # Server Name
ANY, # Server Password
address="tcp://localhost:5556", # derived from the 'port' value in negotiation
address="tcp://*:5556", # derived from the 'port' value in negotiation
bind=True
)
# Ensure the agent attached a ListenBehaviour
@@ -124,7 +124,7 @@ async def test_setup_creates_socket_and_negotiate_2(monkeypatch):
MockCommandAgent.assert_called_once_with(
ANY, # Server Name
ANY, # Server Password
address="tcp://localhost:5557", # derived from the 'port' value in negotiation
address="tcp://*:5557", # derived from the 'port' value in negotiation
bind=True
)
# Ensure the agent attached a ListenBehaviour
@@ -198,7 +198,7 @@ async def test_setup_creates_socket_and_negotiate_4(monkeypatch):
MockCommandAgent.assert_called_once_with(
ANY, # Server Name
ANY, # Server Password
address="tcp://localhost:5557", # derived from the 'port' value in negotiation
address="tcp://*:5557", # derived from the 'port' value in negotiation
bind=True
)
# Ensure the agent attached a ListenBehaviour
@@ -234,7 +234,7 @@ async def test_setup_creates_socket_and_negotiate_5(monkeypatch):
MockCommandAgent.assert_called_once_with(
ANY, # Server Name
ANY, # Server Password
address="tcp://localhost:5557", # derived from the 'port' value in negotiation
address="tcp://*:5557", # derived from the 'port' value in negotiation
bind=True
)
# Ensure the agent attached a ListenBehaviour
@@ -270,7 +270,7 @@ async def test_setup_creates_socket_and_negotiate_6(monkeypatch):
MockCommandAgent.assert_called_once_with(
ANY, # Server Name
ANY, # Server Password
address="tcp://localhost:5557", # derived from the 'port' value in negotiation
address="tcp://*:5557", # derived from the 'port' value in negotiation
bind=True
)
# Ensure the agent attached a ListenBehaviour