Skip to content

Commit 41be926

Browse files
committed
Fix unit test on TestIssueLoadAttributes
1 parent f5717d0 commit 41be926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func TestIssueLoadAttributes(t *testing.T) {
420420
assert.NotNil(t, issue.Projects[0])
421421
assert.Equal(t, int64(1), issue.Projects[0].ID)
422422
} else {
423-
assert.Nil(t, issue.Projects[0])
423+
assert.Nil(t, issue.Projects)
424424
}
425425
}
426426
}

0 commit comments

Comments
 (0)