Update clone_test.go

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
This commit is contained in:
Yashodhan Ghadge 2021-10-21 18:49:52 +05:30 committed by GitHub
parent 406940513f
commit 563a351424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)