aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/api_team_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_team_test.go')
-rw-r--r--integrations/api_team_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go
index 3a27cd4865..be56e37edf 100644
--- a/integrations/api_team_test.go
+++ b/integrations/api_team_test.go
@@ -18,7 +18,7 @@ import (
)
func TestAPITeam(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
teamUser := models.AssertExistsAndLoadBean(t, &models.TeamUser{}).(*models.TeamUser)
team := models.AssertExistsAndLoadBean(t, &models.Team{ID: teamUser.TeamID}).(*models.Team)
@@ -122,7 +122,7 @@ type TeamSearchResults struct {
}
func TestAPITeamSearch(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
user := models.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
org := models.AssertExistsAndLoadBean(t, &models.User{ID: 3}).(*models.User)