From 2138d55a60488feb4c83c6f56db15cec66f68ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sat, 9 Mar 2019 18:43:17 +1100 Subject: [PATCH] increased trio.sleep time for other actors to spawn --- tests/test_discovery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 238633f..8a217dd 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -45,13 +45,15 @@ async def hi(): async def say_hello(other_actor): - await trio.sleep(0.4) # wait for other actor to spawn + await trio.sleep(1) # wait for other actor to spawn async with tractor.find_actor(other_actor) as portal: + assert portal is not None return await portal.run(__name__, 'hi') async def say_hello_use_wait(other_actor): async with tractor.wait_for_actor(other_actor) as portal: + assert portal is not None result = await portal.run(__name__, 'hi') return result