Skip to content

Commit a04c70c

Browse files
Stop actor in test_decorator
Non stopped actor will raise warning: `Task was destroyed but it is pending!` in the next test. Signed-off-by: ela-kotulska-frequenz <[email protected]>
1 parent ef43a71 commit a04c70c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/actor/test_decorator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ async def test_basic_actor() -> None:
9696

9797
msg = await echo_rx.receive()
9898
assert msg is False
99+
# pylint: disable=protected-access,no-member
100+
await _echo_actor._stop() # type: ignore[attr-defined]
99101

100102

101103
async def test_actor_does_not_restart() -> None:

0 commit comments

Comments
 (0)