aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_xref_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-16 05:57:34 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-15 16:57:34 -0500
commit67b316a954b161cac27e16b6455837881919dd94 (patch)
tree46e0278f556447cd9228d63c49a32dacea1f3352 /models/issue_xref_test.go
parentc6b3c5bcefde6be4c64f5769a38962c2ce6ad6de (diff)
downloadgitea-67b316a954b161cac27e16b6455837881919dd94.tar.gz
gitea-67b316a954b161cac27e16b6455837881919dd94.zip
Refactor comment (#9330)
* Refactor comment * fix test * improve code
Diffstat (limited to 'models/issue_xref_test.go')
-rw-r--r--models/issue_xref_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/issue_xref_test.go b/models/issue_xref_test.go
index d8defd99c6..936d1124be 100644
--- a/models/issue_xref_test.go
+++ b/models/issue_xref_test.go
@@ -94,7 +94,8 @@ func TestXRef_ResolveCrossReferences(t *testing.T) {
i1 := testCreateIssue(t, 1, 2, "title1", "content1", false)
i2 := testCreateIssue(t, 1, 2, "title2", "content2", false)
i3 := testCreateIssue(t, 1, 2, "title3", "content3", false)
- assert.NoError(t, i3.ChangeStatus(d, true))
+ _, err := i3.ChangeStatus(d, true)
+ assert.NoError(t, err)
pr := testCreatePR(t, 1, 2, "titlepr", fmt.Sprintf("closes #%d", i1.Index))
rp := AssertExistsAndLoadBean(t, &Comment{IssueID: i1.ID, RefIssueID: pr.Issue.ID, RefCommentID: 0}).(*Comment)