From 4e07c6d2071b991ca62ea4d6aea5a4fd2adee807 Mon Sep 17 00:00:00 2001 From: Sebastian Molenda Date: Thu, 5 Dec 2024 21:20:55 +0100 Subject: [PATCH] Fix for behat tests --- tests/acceptance/subscribe/steps/then_steps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/subscribe/steps/then_steps.py b/tests/acceptance/subscribe/steps/then_steps.py index ef09d821..c66d37c0 100644 --- a/tests/acceptance/subscribe/steps/then_steps.py +++ b/tests/acceptance/subscribe/steps/then_steps.py @@ -131,4 +131,6 @@ async def step_impl(context, channel1, channel2): @then(u'I don\'t observe any Events and Invocations of the Presence EE') @async_run_until_complete async def step_impl(context): - assert len(context.log_stream.getvalue().splitlines()) == 0 + logs = context.log_stream.getvalue().splitlines() + logs = list(filter(lambda line: not line == 'Shutting down StateMachine', logs)) + assert len(logs) == 0