diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-22 18:51:21 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-22 18:51:21 +0200 |
commit | 001bb130fe6186421f3ddcc556854410edd8d95e (patch) | |
tree | 4307c48320a05acf5c1e98b244feae6b3e1828ce /common_test.go | |
parent | 4912552b913f1f575f9cc358b46bcdbe884e7279 (diff) | |
download | go-git-001bb130fe6186421f3ddcc556854410edd8d95e.tar.gz |
cleanup old fixtures
Diffstat (limited to 'common_test.go')
-rw-r--r-- | common_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common_test.go b/common_test.go index d95ccf5..6281d0a 100644 --- a/common_test.go +++ b/common_test.go @@ -29,7 +29,9 @@ func (s *BaseSuite) SetUpSuite(c *C) { s.Suite.SetUpSuite(c) s.installMockProtocol(c) s.buildRepository(c) - s.buildRepositories(c) + + s.Repositories = make(map[string]*Repository, 0) + s.buildRepositories(c, fixtures.Basic()) } func (s *BaseSuite) installMockProtocol(c *C) { @@ -46,9 +48,8 @@ func (s *BaseSuite) buildRepository(c *C) { c.Assert(err, IsNil) } -func (s *BaseSuite) buildRepositories(c *C) { - s.Repositories = make(map[string]*Repository, 0) - for _, fixture := range fixtures.All() { +func (s *BaseSuite) buildRepositories(c *C, f fixtures.Fixtures) { + for _, fixture := range f { r := NewMemoryRepository() f := fixture.Packfile() |