From 3a79b777ce9a780452ea49e1e7fade35d0feb6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 16 Aug 2025 19:45:56 -0400 Subject: [PATCH] fix more failing tests --- models/fixtures/repo_group_team.yml | 6 ++++++ services/group/group_test.go | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/models/fixtures/repo_group_team.yml b/models/fixtures/repo_group_team.yml index df408d5592..803529a474 100644 --- a/models/fixtures/repo_group_team.yml +++ b/models/fixtures/repo_group_team.yml @@ -142,3 +142,9 @@ group_id: 376 access_mode: 1 can_create_in: false +- id: 25 + org_id: 3 + team_id: 12 + group_id: 123 + access_mode: 4 + can_create_in: true diff --git a/services/group/group_test.go b/services/group/group_test.go index 25c47dafc9..d98ee68f39 100644 --- a/services/group/group_test.go +++ b/services/group/group_test.go @@ -36,7 +36,7 @@ func TestNewGroup(t *testing.T) { func TestMoveGroup(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ - ID: 3, + ID: 28, }) testfn := func(gid int64) { cond := &group_model.FindGroupsOptions{ @@ -61,7 +61,7 @@ func TestMoveGroup(t *testing.T) { func TestMoveRepo(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ - ID: 3, + ID: 28, }) cond := repo_model.SearchRepositoryCondition(repo_model.SearchRepoOptions{ GroupID: 123,