Skip to content

Commit e7683db

Browse files
committed
Fix test
1 parent 6e4c2a2 commit e7683db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/issue_reaction_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func TestIssueCommentDeleteReaction(t *testing.T) {
132132
user4 := AssertExistsAndLoadBean(t, &User{ID: 4}).(*User)
133133

134134
issue1 := AssertExistsAndLoadBean(t, &Issue{ID: 1}).(*Issue)
135+
repo1 := AssertExistsAndLoadBean(t, &Repository{ID: issue1.RepoID}).(*Repository)
135136

136137
comment1 := AssertExistsAndLoadBean(t, &Comment{ID: 1}).(*Comment)
137138

@@ -140,7 +141,7 @@ func TestIssueCommentDeleteReaction(t *testing.T) {
140141
addReaction(t, user3, issue1, comment1, "heart")
141142
addReaction(t, user4, issue1, comment1, "+1")
142143

143-
err := comment1.LoadReactions()
144+
err := comment1.LoadReactions(repo1)
144145
assert.NoError(t, err)
145146
assert.Len(t, comment1.Reactions, 4)
146147

0 commit comments

Comments
 (0)