forked from TrueCloudLab/frostfs-node
[#220] localstorage: Replace basic errors to core library
Replace ErrNotFound and ErrRangeOutOfBounds to core/object package in order to share them across the libraries. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7512a5ba18
commit
47d2239332
15 changed files with 68 additions and 82 deletions
|
@ -152,9 +152,9 @@ func TestBlobovniczas(t *testing.T) {
|
|||
gPrm.SetAddress(addrList[i])
|
||||
|
||||
_, err = b.get(gPrm)
|
||||
require.True(t, errors.Is(err, ErrObjectNotFound))
|
||||
require.True(t, errors.Is(err, object.ErrNotFound))
|
||||
|
||||
_, err = b.delete(dPrm)
|
||||
require.True(t, errors.Is(err, ErrObjectNotFound))
|
||||
require.True(t, errors.Is(err, object.ErrNotFound))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue