diff --git a/clone_test.go b/clone_test.go index ea8a04f..9644781 100644 --- a/clone_test.go +++ b/clone_test.go @@ -105,6 +105,7 @@ func TestCloneWithExternalHTTPUrWithLocalServer(t *testing.T) { // clone the repo url := serv.URL + "/.git" path, err := ioutil.TempDir("", "git2go") + defer os.RemoveAll(path) _, err = Clone(url, path, &CloneOptions{}) if err != nil { t.Fatal("cannot clone remote repo via http, error: ", err)