diff options
Diffstat (limited to '')
| -rw-r--r-- | internal/git/handler_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/git/handler_test.go b/internal/git/handler_test.go index f9b4cd7..95f1bc7 100644 --- a/internal/git/handler_test.go +++ b/internal/git/handler_test.go @@ -1,14 +1,11 @@ package git import ( - "os" "testing" + ) func TestGitHandler(t *testing.T) { - dir, err := os.MkdirTemp("", "go-git-tests") - if err != nil { - t.Fatalf("Couldn't create a temp directory for tests: %s", err) - } + dir := t.TempDir() _ = GitHttpBackendHandler(dir, "git http-backend") } |