mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 07:49:34 +02:00
fix wrong group in issue xref test
This commit is contained in:
1 parent
83fb6e0610
commit
2c44c1ac61
1 file changed
+1
-1
@@ -54,7 +54,7 @@ func TestXRef_AddCrossReferences(t *testing.T) {
|
|||||||
itarget = testCreateIssue(t, 3, 3, "title4", "content4", false)
|
itarget = testCreateIssue(t, 3, 3, "title4", "content4", false)
|
||||||
|
|
||||||
// Cross-reference to issue #4 by admin
|
// Cross-reference to issue #4 by admin
|
||||||
content = fmt.Sprintf("content5, mentions org3/repo3#%d", itarget.Index)
|
content = fmt.Sprintf("content5, mentions org3/129/repo3#%d", itarget.Index)
|
||||||
i = testCreateIssue(t, 2, 1, "title5", content, false)
|
i = testCreateIssue(t, 2, 1, "title5", content, false)
|
||||||
ref = unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{IssueID: itarget.ID, RefIssueID: i.ID, RefCommentID: 0})
|
ref = unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{IssueID: itarget.ID, RefIssueID: i.ID, RefCommentID: 0})
|
||||||
assert.Equal(t, issues_model.CommentTypeIssueRef, ref.Type)
|
assert.Equal(t, issues_model.CommentTypeIssueRef, ref.Type)
|
||||||
|
|||||||
Reference in new issue
Block a user