aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)