Skip to content

Commit e2f7527

Browse files
committed
fix test
1 parent 0e9740e commit e2f7527

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

models/issue_reaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func (list ReactionList) GroupByType() map[string]ReactionList {
254254
func (list ReactionList) getUserIDs() []int64 {
255255
userIDs := make(map[int64]struct{}, len(list))
256256
for _, reaction := range list {
257-
if reaction.OriginalAuthor == "" {
257+
if reaction.OriginalAuthor != "" {
258258
continue
259259
}
260260
if _, ok := userIDs[reaction.UserID]; !ok {

modules/migrations/github_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,17 @@ func TestGitHubDownloadRepo(t *testing.T) {
210210
{
211211
UserID: 1669571,
212212
UserName: "mrsdizzie",
213-
Content: "confused",
213+
Content: "-1",
214214
},
215215
{
216216
UserID: 1669571,
217217
UserName: "mrsdizzie",
218-
Content: "hooray",
218+
Content: "confused",
219219
},
220220
{
221221
UserID: 1669571,
222222
UserName: "mrsdizzie",
223-
Content: "+1",
223+
Content: "hooray",
224224
},
225225
{
226226
UserID: 1669571,

0 commit comments

Comments
 (0)