Skip to content

Commit 1a1bd6e

Browse files
committed
cleanup the repository branch
1 parent 8e7f51a commit 1a1bd6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/repo_webhook_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ func Test_WebhookPushDevBranch(t *testing.T) {
436436
// 3. trigger the webhook
437437
testCreateFile(t, session, "user2", "repo1", "develop", "new_dev_branch", "test_webhook_push.md", "# a test file for webhook push")
438438

439+
defer func() {
440+
// cleanup the new_dev_branch
441+
testAPIDeleteBranch(t, "new_dev_branch", http.StatusNoContent)
442+
}()
439443
afterCommitID, err := gitRepo.GetBranchCommitID("new_dev_branch")
440444
assert.NoError(t, err)
441445

0 commit comments

Comments
 (0)