Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3010530

Browse files
chore(test): prevent 'job_with_artifact' fixture running forever
Previously the 'job_with_artifact' fixture could run forever. Now giveit up to 60 seconds to complete before failing.
1 parent553f5b0 commit3010530

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎tests/functional/cli/test_cli_artifacts.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@
2424

2525
@pytest.fixture(scope="module")
2626
defjob_with_artifacts(gitlab_runner,project):
27+
start_time=time.time()
28+
2729
project.files.create(data)
2830

2931
jobs=None
3032
whilenotjobs:
3133
time.sleep(0.5)
3234
jobs=project.jobs.list(scope="success")
35+
iftime.time()-start_time>60:
36+
forjobinjobs:
37+
job.pprint()
38+
assertNone,"Fixture 'job_with_artifact' failed"
3339

3440
returnproject.jobs.get(jobs[0].id)
3541

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp