fix: fixed integration tests due to new change
ref: N25B-256
This commit is contained in:
@@ -428,6 +428,7 @@ async def test_listen_behaviour_ping_correct(caplog):
|
||||
# TODO: Integration test between actual server and password needed for spade agents
|
||||
agent = RICommunicationAgent("test@server", "password")
|
||||
agent._req_socket = fake_socket
|
||||
agent.connected = True
|
||||
|
||||
behaviour = agent.ListenBehaviour()
|
||||
agent.add_behaviour(behaviour)
|
||||
@@ -463,6 +464,7 @@ async def test_listen_behaviour_ping_wrong_endpoint(caplog):
|
||||
|
||||
agent = RICommunicationAgent("test@server", "password", fake_pub_socket)
|
||||
agent._req_socket = fake_socket
|
||||
agent.connected = True
|
||||
|
||||
behaviour = agent.ListenBehaviour()
|
||||
agent.add_behaviour(behaviour)
|
||||
@@ -486,6 +488,7 @@ async def test_listen_behaviour_timeout(zmq_context, caplog):
|
||||
|
||||
agent = RICommunicationAgent("test@server", "password")
|
||||
agent._req_socket = fake_socket
|
||||
agent.connected = True
|
||||
|
||||
behaviour = agent.ListenBehaviour()
|
||||
agent.add_behaviour(behaviour)
|
||||
@@ -514,6 +517,7 @@ async def test_listen_behaviour_ping_no_endpoint(caplog):
|
||||
|
||||
agent = RICommunicationAgent("test@server", "password")
|
||||
agent._req_socket = fake_socket
|
||||
agent.connected = True
|
||||
|
||||
behaviour = agent.ListenBehaviour()
|
||||
agent.add_behaviour(behaviour)
|
||||
|
||||
Reference in New Issue
Block a user