diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/memory/storage.go | 2 | ||||
-rw-r--r-- | storage/memory/storage_test.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go index fe92256..fbf4bc4 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -58,7 +58,7 @@ func (o *ObjectStorage) Set(obj core.Object) (core.Hash, error) { func (o *ObjectStorage) Get(h core.Hash) (core.Object, error) { obj, ok := o.Objects[h] if !ok { - return nil, core.ObjectNotFoundErr + return nil, core.ErrObjectNotFound } return obj, nil diff --git a/storage/memory/storage_test.go b/storage/memory/storage_test.go index f2fd3da..df6d5cf 100644 --- a/storage/memory/storage_test.go +++ b/storage/memory/storage_test.go @@ -33,6 +33,7 @@ func (s *ObjectStorageSuite) TestSet(c *C) { writer.Write([]byte("foo")) h, err := os.Set(o) + c.Assert(err, IsNil) c.Assert(h.String(), Equals, "bc9968d75e48de59f0870ffb71f5e160bbbdcf52") } |