We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f3bd9 commit df77ad1Copy full SHA for df77ad1
tests/test_TasksApi.py
@@ -372,7 +372,7 @@ def test_cancel_run_not_exist(self):
372
runs = self.tasks_api.get_runs(task.id)
373
374
with pytest.raises(ApiException) as e:
375
- assert self.tasks_api.cancel_run(task_id=task.id, run_id=runs[0].id)
+ assert self.tasks_api.cancel_run(task_id=task.id, run_id=runs[-1].id)
376
assert "failed to cancel run" in e.value.body
377
assert "run not found" in e.value.body
378
0 commit comments