Skip to content

Commit

Permalink
Also dill the creator methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcschrg committed Oct 18, 2024
1 parent ee861a5 commit 2147568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests/container/test_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@ async def test_async_agent_processes_ping_pong_p_to_p():
c = create_tcp_container(addr=addr, copy_internal_messages=False)
main_agent = c.register(P2PMainAgent(), suggested_aid=aid_main_agent)

target_addr = main_agent.addr

async def agent_creator(container):
p2pta = container.register(
P2PTestAgent(aid_main_agent), suggested_aid="process_agent1"
)
await p2pta.send_message(content="pong", receiver_addr=main_agent.addr)
await p2pta.send_message(content="pong", receiver_addr=target_addr)

async with activate(c) as c:
await c.as_agent_process(agent_creator=agent_creator)
Expand Down

0 comments on commit 2147568

Please sign in to comment.