aboutsummaryrefslogtreecommitdiffstats
path: root/models/org_team_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-08-07 12:22:41 +0800
committerLauris BH <lauris@nix.lv>2019-08-07 07:22:41 +0300
commitc832f0eef7a114bc2ee4fae22b959a9ed90e2a18 (patch)
tree775b257af21a30d43c379d818b7f62562510d719 /models/org_team_test.go
parent28c5ae27d698732b2a42b9a25e9e3b99a28b2ce0 (diff)
downloadgitea-c832f0eef7a114bc2ee4fae22b959a9ed90e2a18.tar.gz
gitea-c832f0eef7a114bc2ee4fae22b959a9ed90e2a18.zip
Fix approvals counting (#7757)
* fix approvals counting * fix tests * fmt
Diffstat (limited to 'models/org_team_test.go')
-rw-r--r--models/org_team_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/org_team_test.go b/models/org_team_test.go
index a81f9c0749..06ab4637d8 100644
--- a/models/org_team_test.go
+++ b/models/org_team_test.go
@@ -370,7 +370,7 @@ func TestUsersInTeamsCount(t *testing.T) {
assert.Equal(t, expected, count)
}
- test([]int64{2}, []int64{1, 2, 3, 4}, 2)
- test([]int64{1, 2, 3, 4, 5}, []int64{2, 5}, 2)
- test([]int64{1, 2, 3, 4, 5}, []int64{2, 3, 5}, 3)
+ test([]int64{2}, []int64{1, 2, 3, 4}, 1) // only userid 2
+ test([]int64{1, 2, 3, 4, 5}, []int64{2, 5}, 2) // userid 2,4
+ test([]int64{1, 2, 3, 4, 5}, []int64{2, 3, 5}, 3) // userid 2,4,5
}