Skip to content

Commit 90572c5

Browse files
GustedKN4CK3R
andauthored
Specify ID in TestAPITeam (#22192)
- There have been [CI failures](https://codeberg.org/forgejo/forgejo/issues/111) in this specific test function. The code on itself looks good, the CI failures are likely caused by not specifying any field in `TeamUser`, which might have caused to unittest to return another `TeamUser` than the code expects. Co-authored-by: KN4CK3R <[email protected]>
1 parent c4df10d commit 90572c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/api_team_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
func TestAPITeam(t *testing.T) {
2525
defer tests.PrepareTestEnv(t)()
2626

27-
teamUser := unittest.AssertExistsAndLoadBean(t, &organization.TeamUser{})
27+
teamUser := unittest.AssertExistsAndLoadBean(t, &organization.TeamUser{ID: 1})
2828
team := unittest.AssertExistsAndLoadBean(t, &organization.Team{ID: teamUser.TeamID})
2929
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: teamUser.UID})
3030

0 commit comments

Comments
 (0)