forked from TrueCloudLab/frostfs-api-go
Fix marshaller test
This commit is contained in:
parent
7d0a189721
commit
ca917e42d0
1 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,9 @@ func TestOwnerID_StableMarshal(t *testing.T) {
|
|||
gotOwner := new(OwnerID)
|
||||
|
||||
t.Run("small buffer", func(t *testing.T) {
|
||||
_, err = expectedOwner.StableMarshal(make([]byte, 1))
|
||||
require.Error(t, err)
|
||||
require.Panics(t, func() {
|
||||
expectedOwner.StableMarshal(make([]byte, 1))
|
||||
})
|
||||
})
|
||||
|
||||
t.Run("empty owner", func(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue