Skip to content

Commit df77ad1

Browse files
committed
test: fix flaky test - use a first run
1 parent 27f3bd9 commit df77ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_TasksApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def test_cancel_run_not_exist(self):
372372
runs = self.tasks_api.get_runs(task.id)
373373

374374
with pytest.raises(ApiException) as e:
375-
assert self.tasks_api.cancel_run(task_id=task.id, run_id=runs[0].id)
375+
assert self.tasks_api.cancel_run(task_id=task.id, run_id=runs[-1].id)
376376
assert "failed to cancel run" in e.value.body
377377
assert "run not found" in e.value.body
378378

0 commit comments

Comments
 (0)