mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-18 01:55:08 +02:00
fix failing test in issue_xref_test.go
This commit is contained in:
parent
2671991440
commit
60a80e03f9
@ -54,7 +54,7 @@ func TestXRef_AddCrossReferences(t *testing.T) {
|
||||
itarget = testCreateIssue(t, 3, 3, "title4", "content4", false)
|
||||
|
||||
// Cross-reference to issue #4 by admin
|
||||
content = fmt.Sprintf("content5, mentions org3/129/repo3#%d", itarget.Index)
|
||||
content = fmt.Sprintf("content5, mentions org3/group/129/repo3#%d", itarget.Index)
|
||||
i = testCreateIssue(t, 2, 1, "title5", content, false)
|
||||
ref = unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{IssueID: itarget.ID, RefIssueID: i.ID, RefCommentID: 0})
|
||||
assert.Equal(t, issues_model.CommentTypeIssueRef, ref.Type)
|
||||
@ -63,7 +63,7 @@ func TestXRef_AddCrossReferences(t *testing.T) {
|
||||
assert.Equal(t, references.XRefActionNone, ref.RefAction)
|
||||
|
||||
// Cross-reference to issue #4 with no permission
|
||||
content = fmt.Sprintf("content6, mentions org3/repo3#%d", itarget.Index)
|
||||
content = fmt.Sprintf("content6, mentions org3/group/129/repo3#%d", itarget.Index)
|
||||
i = testCreateIssue(t, 4, 5, "title6", content, false)
|
||||
unittest.AssertNotExistsBean(t, &issues_model.Comment{IssueID: itarget.ID, RefIssueID: i.ID, RefCommentID: 0})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user