Skip to content

Commit b4ebf1b

Browse files
committed
Fix lint
1 parent 3f9f725 commit b4ebf1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/project_workflow_execution_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func TestProjectWorkflowExecutionCodeChangesRequested(t *testing.T) {
575575
commitID, err := gitRepo.GetRefCommitID(pr.GetGitHeadRefName())
576576
assert.NoError(t, err)
577577

578-
testSubmitReview(t, user2Session, htmlDoc.GetCSRF(), user.Name, repo.Name, strconv.FormatInt(int64(pr.Issue.Index), 10), commitID, "reject", http.StatusOK)
578+
testSubmitReview(t, user2Session, htmlDoc.GetCSRF(), user.Name, repo.Name, strconv.FormatInt(pr.Issue.Index, 10), commitID, "reject", http.StatusOK)
579579

580580
// Verify workflow executed: PR should have "needs-changes" label
581581
issue, err := issues_model.GetIssueByID(t.Context(), pr.Issue.ID)
@@ -649,7 +649,7 @@ func TestProjectWorkflowExecutionCodeReviewApproved(t *testing.T) {
649649
commitID, err := gitRepo.GetRefCommitID(pr.GetGitHeadRefName())
650650
assert.NoError(t, err)
651651

652-
testSubmitReview(t, user2Session, htmlDoc.GetCSRF(), user.Name, repo.Name, fmt.Sprintf("%d", pr.Issue.Index), commitID, "approve", http.StatusOK)
652+
testSubmitReview(t, user2Session, htmlDoc.GetCSRF(), user.Name, repo.Name, strconv.FormatInt(pr.Issue.Index, 10), commitID, "approve", http.StatusOK)
653653

654654
// Verify workflow executed: PR should be in "Ready to Merge" column and have "approved" label
655655
issue, err := issues_model.GetIssueByID(t.Context(), pr.Issue.ID)
@@ -733,7 +733,7 @@ func TestProjectWorkflowExecutionPullRequestMerged(t *testing.T) {
733733
testAddIssueToProject(t, user2Session, "user2", "repo1", project.ID, pr.Issue.ID)
734734

735735
// Merge the PR (as user2, who has permission)
736-
prURL := fmt.Sprintf("/user2/repo1/pulls/%s", prNum)
736+
prURL := "/user2/repo1/pulls/" + prNum
737737
req := NewRequest(t, "GET", prURL)
738738
resp = user2Session.MakeRequest(t, req, http.StatusOK)
739739
htmlDoc := NewHTMLParser(t, resp.Body)

0 commit comments

Comments
 (0)