diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
commit | b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef (patch) | |
tree | 7f93f11b91b84e605a26f573d40791a4f6cb49d0 /storage/filesystem/object_test.go | |
parent | e4246138cb9ffb819c052ba17a9fbdf915427291 (diff) | |
download | go-git-b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef.tar.gz |
core: Storage.Get, switch order of args
Diffstat (limited to 'storage/filesystem/object_test.go')
-rw-r--r-- | storage/filesystem/object_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index 956fdeb..361ae32 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -66,7 +66,7 @@ func (s *FsSuite) TestHashNotFound(c *C) { sto := s.newObjectStorage(c, "binary-relations") types := []core.ObjectType{core.AnyObject, core.TagObject, core.CommitObject, core.BlobObject, core.TreeObject} for t := range types { - _, err := sto.Get(core.ZeroHash, core.ObjectType(t)) + _, err := sto.Get(core.ObjectType(t), core.ZeroHash) c.Assert(err, Equals, core.ErrObjectNotFound) } } @@ -158,7 +158,7 @@ func equalsStorages(a, b core.ObjectStorage) (bool, string, error) { break } - bo, err := b.Get(ao.Hash(), core.AnyObject) + bo, err := b.Get(core.AnyObject, ao.Hash()) if err != nil { return false, "", fmt.Errorf("getting object with hash %s: %s", ao.Hash(), err) |