Skip to content

Commit 58746e0

Browse files
committed
fix test
1 parent 7cc95a6 commit 58746e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

api/tests/unit/task_processor/test_unit_task_processor_threads.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ def test_task_runner_is_resilient_to_errors(
3333
task_runner.run_iteration()
3434

3535
# Then
36-
assert len(caplog.records) == 2
36+
assert len(caplog.records) == 1
3737

3838
assert caplog.records[0].levelno == logging.ERROR
3939
assert (
4040
caplog.records[0].message
4141
== f"Received error retrieving tasks: {exception_message}."
4242
)
43-
44-
assert caplog.records[1].levelno == logging.DEBUG
45-
assert caplog.records[1].message.startswith("Traceback")

0 commit comments

Comments
 (0)