aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-14 00:44:18 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-14 00:44:18 +0200
commitf826cf9d42cc34e2ae5aaf6ede892ecab9d2f198 (patch)
tree7555e7596887f239ce26828e98142e4df25c388f /utils
parent79087748f60f9aba219624a0fe9f4d33a0b51236 (diff)
downloadgo-git-f826cf9d42cc34e2ae5aaf6ede892ecab9d2f198.tar.gz
fix tests and examples
Diffstat (limited to 'utils')
-rw-r--r--utils/difftree/difftree_test.go6
-rw-r--r--utils/fs/os_test.go2
2 files changed, 5 insertions, 3 deletions
diff --git a/utils/difftree/difftree_test.go b/utils/difftree/difftree_test.go
index 558d64d..b13c228 100644
--- a/utils/difftree/difftree_test.go
+++ b/utils/difftree/difftree_test.go
@@ -43,14 +43,16 @@ func (s *DiffTreeSuite) SetUpSuite(c *C) {
s.repos = make(map[string]*git.Repository, 0)
for _, fixRepo := range fixtureRepos {
- s.repos[fixRepo.url] = git.NewPlainRepository()
+ s.repos[fixRepo.url], _ = git.NewMemoryRepository()
f, err := os.Open(fixRepo.packfile)
c.Assert(err, IsNil)
r := packfile.NewSeekable(f)
d := packfile.NewDecoder(r)
- err = d.Decode(s.repos[fixRepo.url].Storage)
+
+ os, _ := s.repos[fixRepo.url].Storage.ObjectStorage()
+ err = d.Decode(os)
c.Assert(err, IsNil)
c.Assert(f.Close(), IsNil)
diff --git a/utils/fs/os_test.go b/utils/fs/os_test.go
index a2a3066..b6c00c6 100644
--- a/utils/fs/os_test.go
+++ b/utils/fs/os_test.go
@@ -18,7 +18,7 @@ type FSImplSuite struct {
var _ = Suite(&FSImplSuite{})
func (s *FSImplSuite) SetUpSuite(c *C) {
- dir, err := tgz.Extract("../../storage/filesystem/internal/gitdir/fixtures/spinnaker-gc.tgz")
+ dir, err := tgz.Extract("../../storage/filesystem/internal/dotgit/fixtures/spinnaker-gc.tgz")
c.Assert(err, IsNil)
s.dir = dir
}