summaryrefslogtreecommitdiff
path: root/push_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'push_test.go')
-rw-r--r--push_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/push_test.go b/push_test.go
index cd708c6..e36e407 100644
--- a/push_test.go
+++ b/push_test.go
@@ -1,15 +1,15 @@
package git
import (
- "os"
"testing"
)
func TestRemotePush(t *testing.T) {
repo := createBareTestRepo(t)
- defer os.RemoveAll(repo.Path())
+ defer cleanupTestRepo(t, repo)
+
localRepo := createTestRepo(t)
- defer os.RemoveAll(localRepo.Workdir())
+ defer cleanupTestRepo(t, localRepo)
remote, err := localRepo.CreateRemote("test_push", repo.Path())
checkFatal(t, err)