aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-09-10 12:36:46 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2018-09-10 12:36:46 +0200
commit9ce4eeab99708a2ac35124585103f9e4a04126df (patch)
treef0273e3453020498defff396e3d62e9f33436468 /repository_test.go
parentbf0593d86ef73f28d3eb097c02d53a6a036f52f7 (diff)
downloadgo-git-9ce4eeab99708a2ac35124585103f9e4a04126df.tar.gz
repository: fix test for new Storage constructor
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/repository_test.go b/repository_test.go
index e48f42d..2710d9d 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -1568,8 +1568,7 @@ func (s *RepositorySuite) TestDeleteTagAnnotated(c *C) {
defer os.RemoveAll(dir) // clean up
- fss, err := filesystem.NewStorage(osfs.New(dir))
- c.Assert(err, IsNil)
+ fss := filesystem.NewStorage(osfs.New(dir), cache.NewObjectLRUDefault())
r, _ := Init(fss, nil)
err = r.clone(context.Background(), &CloneOptions{URL: url})
@@ -1619,8 +1618,7 @@ func (s *RepositorySuite) TestDeleteTagAnnotatedUnpacked(c *C) {
defer os.RemoveAll(dir) // clean up
- fss, err := filesystem.NewStorage(osfs.New(dir))
- c.Assert(err, IsNil)
+ fss := filesystem.NewStorage(osfs.New(dir), cache.NewObjectLRUDefault())
r, _ := Init(fss, nil)
err = r.clone(context.Background(), &CloneOptions{URL: url})
@@ -1936,9 +1934,9 @@ func (s *RepositorySuite) TestResolveRevisionWithErrors(c *C) {
c.Assert(err, IsNil)
datas := map[string]string{
- "efs/heads/master~": "reference not found",
- "HEAD^3": `Revision invalid : "3" found must be 0, 1 or 2 after "^"`,
- "HEAD^{/whatever}": `No commit message match regexp : "whatever"`,
+ "efs/heads/master~": "reference not found",
+ "HEAD^3": `Revision invalid : "3" found must be 0, 1 or 2 after "^"`,
+ "HEAD^{/whatever}": `No commit message match regexp : "whatever"`,
"4e1243bd22c66e76c2ba9eddc1f91394e57f9f83": "reference not found",
"918c48b83bd081e863dbe1b80f8998f058cd8294": `refname "918c48b83bd081e863dbe1b80f8998f058cd8294" is ambiguous`,
}