Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit a1c7c6a

Browse files
committed
fix test
1 parent 00360be commit a1c7c6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/task_processor/test_unit_task_processor_processor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def test_run_task_runs_task_and_creates_task_run_object_when_failure(
240240

241241
assert len(caplog.records) == 3
242242

243-
warning_log = caplog.records[0]
244-
assert warning_log.levelname == "WARNING"
245-
assert warning_log.message == (
243+
[log_record] = caplog.records
244+
assert log_record.levelname == "ERROR"
245+
assert log_record.message == (
246246
f"Failed to execute task '{task.task_identifier}'. Exception was: {msg}"
247247
)
248248

0 commit comments

Comments
 (0)