summaryrefslogtreecommitdiff
path: root/patch_test.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-04-24 16:47:42 +0200
committerCarlos Martín Nieto <[email protected]>2015-04-24 16:47:42 +0200
commit9538c7f750dafaf3752e04b1c1747d7984ca31d0 (patch)
tree3e37d99c8266d130ea54b2080e20199e8073e99e /patch_test.go
parente021457f27654ea0f1ec41963c6da62c168be853 (diff)
parente300945a3d456af1b619447347cd19a779b7a8f5 (diff)
Merge pull request #197 from pks-t/test-cleanups
tests: always clean up temporary repository dirs
Diffstat (limited to 'patch_test.go')
-rw-r--r--patch_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/patch_test.go b/patch_test.go
index a061142..2d52fb4 100644
--- a/patch_test.go
+++ b/patch_test.go
@@ -7,8 +7,7 @@ import (
func TestPatch(t *testing.T) {
repo := createTestRepo(t)
- defer repo.Free()
- //defer os.RemoveAll(repo.Workdir())
+ defer cleanupTestRepo(t, repo)
_, originalTreeId := seedTestRepo(t, repo)
originalTree, err := repo.LookupTree(originalTreeId)