Fix lint (#9688)
This commit is contained in:
parent
17b844a3ec
commit
8878cfa4a1
|
@ -182,7 +182,7 @@ func TestPullRequest_UpdateCols(t *testing.T) {
|
||||||
BaseBranch: "baseBranch",
|
BaseBranch: "baseBranch",
|
||||||
HeadBranch: "headBranch",
|
HeadBranch: "headBranch",
|
||||||
}
|
}
|
||||||
pr.UpdateCols("head_branch")
|
assert.NoError(t, pr.UpdateCols("head_branch"))
|
||||||
|
|
||||||
pr = AssertExistsAndLoadBean(t, &PullRequest{ID: 1}).(*PullRequest)
|
pr = AssertExistsAndLoadBean(t, &PullRequest{ID: 1}).(*PullRequest)
|
||||||
assert.Equal(t, "master", pr.BaseBranch)
|
assert.Equal(t, "master", pr.BaseBranch)
|
||||||
|
|
|
@ -201,7 +201,9 @@ func TestPullRequests(ctx context.Context) {
|
||||||
} else if err = TestPatch(pr); err != nil {
|
} else if err = TestPatch(pr); err != nil {
|
||||||
log.Error("testPatch[%d]: %v", pr.ID, err)
|
log.Error("testPatch[%d]: %v", pr.ID, err)
|
||||||
pr.Status = models.PullRequestStatusError
|
pr.Status = models.PullRequestStatusError
|
||||||
pr.UpdateCols("status")
|
if err := pr.UpdateCols("status"); err != nil {
|
||||||
|
log.Error("update pr [%d] status to PullRequestStatusError failed: %v", pr.ID, err)
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
checkAndUpdateStatus(pr)
|
checkAndUpdateStatus(pr)
|
||||||
|
|
Loading…
Reference in New Issue