From 37e0ec7b7d90f7e528841484c5418ab85c144dbe Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 10 Jan 2023 15:40:45 -0500 Subject: [PATCH] Assert fixture caller is `pikerd` --- tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1bd1d86e..d781cf61 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -137,12 +137,16 @@ async def _open_test_pikerd( port = random.randint(6e3, 7e3) reg_addr = ('127.0.0.1', port) + # try: async with ( maybe_open_pikerd( registry_addr=reg_addr, **kwargs, - ), + ) as pikerd_portal, ): + # this proc/actor is the pikerd + assert pikerd_portal is None + async with tractor.wait_for_actor( 'pikerd', arbiter_sockaddr=reg_addr,