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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy