Skip to content

Commit 318eb32

Browse files
committed
fix: add type narrowing for error_details in test
1 parent 0d768a9 commit 318eb32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/task_processor/test_unit_task_processor_processor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ def test_run_task_does_not_block_on_timeout(
10101010
assert len(task_runs) == 1
10111011
task_run = task_runs[0]
10121012
assert task_run.result == TaskResult.FAILURE.value
1013+
assert task_run.error_details is not None
10131014
assert "TimeoutError" in task_run.error_details
10141015

10151016
task.refresh_from_db(using=current_database)

0 commit comments

Comments
 (0)