Skip to content

Commit 1ac0719

Browse files
committed
fix linting
1 parent e729fc9 commit 1ac0719

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/repo_webhook_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ func Test_WebhookIssueDelete(t *testing.T) {
468468
// 1. create a new webhook with special webhook for repo1
469469
session := loginUser(t, "user2")
470470
testAPICreateWebhookForRepo(t, session, "user2", "repo1", provider.URL(), "issues")
471-
issueUrl := testNewIssue(t, session, "user2", "repo1", "Title1", "Description1")
471+
issueURL := testNewIssue(t, session, "user2", "repo1", "Title1", "Description1")
472472

473473
// 2. trigger the webhook
474-
testIssueDelete(t, session, issueUrl)
474+
testIssueDelete(t, session, issueURL)
475475

476476
// 3. validate the webhook is triggered
477477
assert.Equal(t, "issue", triggeredEvent)
@@ -651,10 +651,10 @@ func Test_WebhookPullRequestDelete(t *testing.T) {
651651
testAPICreateBranch(t, session, "user2", "repo1", "master", "master2", http.StatusCreated)
652652

653653
repo1 := unittest.AssertExistsAndLoadBean(t, &repo.Repository{ID: 1})
654-
issueUrl := testCreatePullToDefaultBranch(t, session, repo1, repo1, "master2", "first pull request")
654+
issueURL := testCreatePullToDefaultBranch(t, session, repo1, repo1, "master2", "first pull request")
655655

656656
// 2. trigger the webhook
657-
testIssueDelete(t, session, path.Join(repo1.Link(), "pulls", issueUrl))
657+
testIssueDelete(t, session, path.Join(repo1.Link(), "pulls", issueURL))
658658

659659
// 3. validate the webhook is triggered
660660
assert.Equal(t, "pull_request", triggeredEvent)

0 commit comments

Comments
 (0)