Skip to content

Commit 01c5327

Browse files
fix more failing tests
1 parent 6d36d18 commit 01c5327

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

models/fixtures/repo_group_team.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,9 @@
142142
group_id: 376
143143
access_mode: 1
144144
can_create_in: false
145+
- id: 25
146+
org_id: 3
147+
team_id: 12
148+
group_id: 123
149+
access_mode: 4
150+
can_create_in: true

services/group/group_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestNewGroup(t *testing.T) {
3636
func TestMoveGroup(t *testing.T) {
3737
assert.NoError(t, unittest.PrepareTestDatabase())
3838
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
39-
ID: 3,
39+
ID: 28,
4040
})
4141
testfn := func(gid int64) {
4242
cond := &group_model.FindGroupsOptions{
@@ -61,7 +61,7 @@ func TestMoveGroup(t *testing.T) {
6161
func TestMoveRepo(t *testing.T) {
6262
assert.NoError(t, unittest.PrepareTestDatabase())
6363
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
64-
ID: 3,
64+
ID: 28,
6565
})
6666
cond := repo_model.SearchRepositoryCondition(repo_model.SearchRepoOptions{
6767
GroupID: 123,

0 commit comments

Comments
 (0)