Skip to content

Commit 012efbf

Browse files
committed
fixup! Convert branch deletion to celery job
1 parent a854882 commit 012efbf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/branches/test_basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ def test_branch_delete_lifecycle(client, org, project, branch_id):
202202
if r.status_code == 200:
203203
assert any(t["task_type"] == "delete" for t in r.json())
204204

205-
# A second DELETE while delete_task_id is set must be rejected
205+
# A second DELETE while the branch is in DELETING state must be rejected.
206+
# BranchDep raises 409 for any operation on a DELETING branch.
206207
r = client.delete(f"{base}/")
207-
assert r.status_code == 400
208+
assert r.status_code == 409
208209

209210
# Wait for the background job to finish — branch must disappear
210211
wait_for_deletion(client, f"{base}/", BRANCH_TIMEOUT_SEC)

0 commit comments

Comments
 (0)