diff options
Diffstat (limited to 'integrations/api_issue_test.go')
-rw-r--r-- | integrations/api_issue_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_issue_test.go b/integrations/api_issue_test.go index 24535057e2..f412f5af08 100644 --- a/integrations/api_issue_test.go +++ b/integrations/api_issue_test.go @@ -16,7 +16,7 @@ import ( ) func TestAPIListIssues(t *testing.T) { - prepareTestEnv(t) + defer prepareTestEnv(t)() repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository) owner := models.AssertExistsAndLoadBean(t, &models.User{ID: repo.OwnerID}).(*models.User) @@ -35,7 +35,7 @@ func TestAPIListIssues(t *testing.T) { } func TestAPICreateIssue(t *testing.T) { - prepareTestEnv(t) + defer prepareTestEnv(t)() const body, title = "apiTestBody", "apiTestTitle" repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository) |