summaryrefslogtreecommitdiffstatshomepage
path: root/api
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-24 09:52:58 -0400
committerGitHub <noreply@github.com>2022-06-24 09:52:58 -0400
commit00b9e1a6028388b332f14ff3e607f02d589b637b (patch)
tree7e9a89ce480f537c3bbe0fb942d1bc9a1c3f758f /api
parentb694052c46a69b47e58526068109db2fbcca92af (diff)
parentfd248de1eb5591ea977fdfcedf75d26f53636a5e (diff)
downloadgit-bug-00b9e1a6028388b332f14ff3e607f02d589b637b.tar.gz
git-bug-00b9e1a6028388b332f14ff3e607f02d589b637b.zip
Merge pull request #817 from MichaelMure/refactor/guarantee-test-cleanup
refactor(809): guarantee test cleanup
Diffstat (limited to 'api')
-rw-r--r--api/graphql/graphql_test.go3
-rw-r--r--api/http/git_file_handlers_test.go3
2 files changed, 2 insertions, 4 deletions
diff --git a/api/graphql/graphql_test.go b/api/graphql/graphql_test.go
index 69d96cab7..350e489a3 100644
--- a/api/graphql/graphql_test.go
+++ b/api/graphql/graphql_test.go
@@ -14,8 +14,7 @@ import (
)
func TestQueries(t *testing.T) {
- repo := repository.CreateGoGitTestRepo(false)
- defer repository.CleanupTestRepos(repo)
+ repo := repository.CreateGoGitTestRepo(t, false)
random_bugs.FillRepoWithSeed(repo, 10, 42)
diff --git a/api/http/git_file_handlers_test.go b/api/http/git_file_handlers_test.go
index 68c1542fd..736bf75ec 100644
--- a/api/http/git_file_handlers_test.go
+++ b/api/http/git_file_handlers_test.go
@@ -19,8 +19,7 @@ import (
)
func TestGitFileHandlers(t *testing.T) {
- repo := repository.CreateGoGitTestRepo(false)
- defer repository.CleanupTestRepos(repo)
+ repo := repository.CreateGoGitTestRepo(t, false)
mrc := cache.NewMultiRepoCache()
repoCache, err := mrc.RegisterDefaultRepository(repo)