diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-04-24 16:47:42 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-04-24 16:47:42 +0200 |
| commit | 9538c7f750dafaf3752e04b1c1747d7984ca31d0 (patch) | |
| tree | 3e37d99c8266d130ea54b2080e20199e8073e99e /branch_test.go | |
| parent | e021457f27654ea0f1ec41963c6da62c168be853 (diff) | |
| parent | e300945a3d456af1b619447347cd19a779b7a8f5 (diff) | |
Merge pull request #197 from pks-t/test-cleanups
tests: always clean up temporary repository dirs
Diffstat (limited to 'branch_test.go')
| -rw-r--r-- | branch_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/branch_test.go b/branch_test.go index 09ebeba..a0834a8 100644 --- a/branch_test.go +++ b/branch_test.go @@ -1,9 +1,13 @@ package git -import "testing" +import ( + "testing" +) func TestBranchIterator(t *testing.T) { repo := createTestRepo(t) + defer cleanupTestRepo(t, repo) + seedTestRepo(t, repo) i, err := repo.NewBranchIterator(BranchLocal) @@ -24,6 +28,8 @@ func TestBranchIterator(t *testing.T) { func TestBranchIteratorEach(t *testing.T) { repo := createTestRepo(t) + defer cleanupTestRepo(t, repo) + seedTestRepo(t, repo) i, err := repo.NewBranchIterator(BranchLocal) |
