From 3baedc470142ae0f7c1885f863b992794662e219 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Tue, 18 Jun 2024 13:35:18 +0100 Subject: [PATCH] fix test --- .../unit/task_processor/test_unit_task_processor_threads.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/tests/unit/task_processor/test_unit_task_processor_threads.py b/api/tests/unit/task_processor/test_unit_task_processor_threads.py index 2957489c84488..09bc1f63ceefb 100644 --- a/api/tests/unit/task_processor/test_unit_task_processor_threads.py +++ b/api/tests/unit/task_processor/test_unit_task_processor_threads.py @@ -33,13 +33,10 @@ def test_task_runner_is_resilient_to_errors( task_runner.run_iteration() # Then - assert len(caplog.records) == 2 + assert len(caplog.records) == 1 assert caplog.records[0].levelno == logging.ERROR assert ( caplog.records[0].message == f"Received error retrieving tasks: {exception_message}." ) - - assert caplog.records[1].levelno == logging.DEBUG - assert caplog.records[1].message.startswith("Traceback")