summaryrefslogtreecommitdiffstats
path: root/models/pull_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-10 13:50:23 +0800
committerGitHub <noreply@github.com>2020-01-10 13:50:23 +0800
commit8878cfa4a125348d92f8163988ac9d3279f27e75 (patch)
tree1a3d7dd1331f75d5ab1dd96f9320a7b154f10b93 /models/pull_test.go
parent17b844a3ecbe1dd74bbde750e6a0adea07d92caa (diff)
downloadgitea-8878cfa4a125348d92f8163988ac9d3279f27e75.tar.gz
gitea-8878cfa4a125348d92f8163988ac9d3279f27e75.zip
Fix lint (#9688)
Diffstat (limited to 'models/pull_test.go')
-rw-r--r--models/pull_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull_test.go b/models/pull_test.go
index 325818e0bf..153739f540 100644
--- a/models/pull_test.go
+++ b/models/pull_test.go
@@ -182,7 +182,7 @@ func TestPullRequest_UpdateCols(t *testing.T) {
BaseBranch: "baseBranch",
HeadBranch: "headBranch",
}
- pr.UpdateCols("head_branch")
+ assert.NoError(t, pr.UpdateCols("head_branch"))
pr = AssertExistsAndLoadBean(t, &PullRequest{ID: 1}).(*PullRequest)
assert.Equal(t, "master", pr.BaseBranch)