Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Jun 18, 2024
1 parent ac41552 commit 3baedc4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 3baedc4

Please sign in to comment.