Assert fixture caller is `pikerd`

samplerd_service
Tyler Goodlet 2023-01-10 15:40:45 -05:00
parent 045b76bab5
commit 37e0ec7b7d
1 changed files with 5 additions and 1 deletions

View File

@ -137,12 +137,16 @@ async def _open_test_pikerd(
port = random.randint(6e3, 7e3) port = random.randint(6e3, 7e3)
reg_addr = ('127.0.0.1', port) reg_addr = ('127.0.0.1', port)
# try:
async with ( async with (
maybe_open_pikerd( maybe_open_pikerd(
registry_addr=reg_addr, registry_addr=reg_addr,
**kwargs, **kwargs,
), ) as pikerd_portal,
): ):
# this proc/actor is the pikerd
assert pikerd_portal is None
async with tractor.wait_for_actor( async with tractor.wait_for_actor(
'pikerd', 'pikerd',
arbiter_sockaddr=reg_addr, arbiter_sockaddr=reg_addr,