From b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 29 Aug 2016 23:06:10 +0200 Subject: core: Storage.Get, switch order of args --- storage/test/storage_suite.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'storage/test') diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go index 2463d9d..4181e8c 100644 --- a/storage/test/storage_suite.go +++ b/storage/test/storage_suite.go @@ -1,9 +1,10 @@ package test import ( + "io" + . "gopkg.in/check.v1" "gopkg.in/src-d/go-git.v4/core" - "io" ) type TestObject struct { @@ -38,11 +39,11 @@ func RunObjectStorageSuite(c *C, os core.ObjectStorage) { c.Assert(err, IsNil) c.Assert(h.String(), Equals, to.Hash, comment) - o, err := os.Get(h, to.Type) + o, err := os.Get(to.Type, h) c.Assert(err, IsNil) c.Assert(o, Equals, to.Object) - o, err = os.Get(h, core.AnyObject) + o, err = os.Get(core.AnyObject, h) c.Assert(err, IsNil) c.Assert(o, Equals, to.Object) @@ -50,7 +51,7 @@ func RunObjectStorageSuite(c *C, os core.ObjectStorage) { if validType == to.Type { continue } - o, err = os.Get(h, validType) + o, err = os.Get(validType, h) c.Assert(o, IsNil) c.Assert(err, Equals, core.ErrObjectNotFound) } -- cgit