8000 fix(api): wait for save to finish with wait_for_sidekiq · python-gitlab/python-gitlab@697ff6c · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 697ff6c

Browse files
committed
fix(api): wait for save to finish with wait_for_sidekiq
1 parent 85163f7 commit 697ff6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/api/test_projects.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def test_project_pages_domains(gl, project):
258258
assert domain not in project.pagesdomains.list()
259259

260260

261-
def test_project_protected_branches(project):
261+
def test_project_protected_branches(project, wait_for_sidekiq):
262262
p_b = project.protectedbranches.create(
263263
{
264264
"name": "*-stable",
@@ -272,6 +272,8 @@ def test_project_protected_branches(project):
272272
p_b.allow_force_push = True
273273
p_b.save()
274274

275+
wait_for_sidekiq(timeout=60)
276+
275277
p_b = project.protectedbranches.get("*-stable")
276278
assert p_b.allow_force_push
277279
p_b.delete()

0 commit comments

Comments
 (0)
0