Skip to content

Commit 68f556d

Browse files
Wait for a short time after starting the test actors (#153)
This is to fix some async scheduling issues in python 3.8 leading to test failures.
2 parents d7d92e1 + 33860b2 commit 68f556d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/frequenz/sdk/timeseries/_resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ResamplerConfig:
102102
"""Resampler configuration."""
103103

104104
resampling_period_s: float
105-
"""The resapmling period in seconds.
105+
"""The resampling period in seconds.
106106
107107
This is the time it passes between resampled data should be calculated.
108108
"""

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)