Skip to content

Commit da6e7f8

Browse files
committed
fix unit test
1 parent 085a44e commit da6e7f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/issues/issue_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestGetUserIssueStats(t *testing.T) {
218218
AssignCount: 1, // 6
219219
CreateCount: 1, // 6
220220
OpenCount: 1, // 6
221-
ClosedCount: 1, // 1
221+
ClosedCount: 0, // issue(id:5) is posted by user2 and user1 is not owner or collaborator of repo(id:1)
222222
},
223223
},
224224
{
@@ -229,11 +229,11 @@ func TestGetUserIssueStats(t *testing.T) {
229229
IsClosed: true,
230230
},
231231
issues_model.IssueStats{
232-
YourRepositoriesCount: 1, // 6
232+
YourRepositoriesCount: 0, // 6
233233
AssignCount: 0,
234234
CreateCount: 0,
235235
OpenCount: 1, // 6
236-
ClosedCount: 1, // 1
236+
ClosedCount: 0, // issue(id:5) is posted by user2 and user1 is not owner or collaborator of repo(id:1)
237237
},
238238
},
239239
{

0 commit comments

Comments
 (0)