aboutsummaryrefslogtreecommitdiffstats
path: root/repository/gogit_test.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-05-31 07:47:56 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-05-31 07:47:56 -0400
commitccc342e81482e5fe6144fdb6c547331eab2cb98a (patch)
treefc8a961f60c2ae91b40cd15ceb4a12f988b493d1 /repository/gogit_test.go
parentda9f95e495476679866863007f44e611627ee2b3 (diff)
downloadgit-bug-ccc342e81482e5fe6144fdb6c547331eab2cb98a.tar.gz
refactor: simplify creation of temp dir - after 1.15
Diffstat (limited to 'repository/gogit_test.go')
-rw-r--r--repository/gogit_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/repository/gogit_test.go b/repository/gogit_test.go
index 7fee91fb..c376de22 100644
--- a/repository/gogit_test.go
+++ b/repository/gogit_test.go
@@ -75,11 +75,7 @@ func TestGoGitRepo(t *testing.T) {
}
func TestGoGitRepo_Indexes(t *testing.T) {
- plainRoot, err := ioutil.TempDir("", "")
- require.NoError(t, err)
- t.Cleanup(func() {
- require.NoError(t, os.RemoveAll(plainRoot))
- })
+ plainRoot := t.TempDir()
repo, err := InitGoGitRepo(plainRoot, namespace)
require.NoError(t, err)