Skip to content

Commit 277755b

Browse files
committed
fixed test due to change
1 parent 54b137d commit 277755b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

services/director-v2/tests/unit/with_dbs/comp_scheduler/test_manager.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,14 @@ async def test_schedule_all_pipelines_logs_error_if_it_find_old_pipelines(
347347
)
348348
with caplog.at_level(logging.ERROR):
349349
await schedule_all_pipelines(initialized_app)
350+
lost_pipeline_messages = [
351+
msg
352+
for msg in caplog.messages
353+
if "lost pipelines" in msg and "re-scheduled" in msg
354+
]
350355
assert (
351-
"found 1 lost pipelines, they will be re-scheduled now" in caplog.messages
352-
)
356+
len(lost_pipeline_messages) > 0
357+
), f"Expected lost pipeline message, got: {caplog.messages}"
353358
_assert_scheduler_client_called_once_with(
354359
scheduler_rabbit_client_parser,
355360
SchedulePipelineRabbitMessage(

0 commit comments

Comments
 (0)