Skip to content

Commit 33860b2

Browse files
committed
Wait for a short time after starting the test actors
This is to fix some async scheduling issues in python 3.8 leading to test failures. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 120cfee commit 33860b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/timeseries/mock_microgrid.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ async def start(self) -> Tuple[Sender[ComponentMetricRequest], ChannelRegistry]:
8080
"""
8181
await self._server.start()
8282
await asyncio.sleep(0.1)
83-
return await self._init_client_and_actors()
83+
ret = await self._init_client_and_actors()
84+
await asyncio.sleep(0.1)
85+
return ret
8486

8587
@classmethod
8688
async def new(

0 commit comments

Comments
 (0)