Skip to content

Commit f7010ac

Browse files
author
Andrei Neagu
committed
fixed error
1 parent 735bb6a commit f7010ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/service-library/tests/long_running_tasks/test_long_running_tasks_task.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,8 @@ async def test_get_result_finished_with_error(
392392
task_id, with_task_context=empty_context
393393
)
394394
assert result.str_error is not None # nosec
395-
error = loads(result.str_error)
396395
with pytest.raises(_TetingError, match="failing asap"):
397-
raise error
396+
loads(result.str_error)
398397

399398

400399
async def test_get_result_finished_with_unpicklable_error(

0 commit comments

Comments
 (0)