Fix marshaller test

This commit is contained in:
Alex Vanin 2020-08-13 16:44:01 +03:00 committed by Stanislav Bogatyrev
parent 7d0a189721
commit ca917e42d0

View file

@ -18,8 +18,9 @@ func TestOwnerID_StableMarshal(t *testing.T) {
gotOwner := new(OwnerID) gotOwner := new(OwnerID)
t.Run("small buffer", func(t *testing.T) { t.Run("small buffer", func(t *testing.T) {
_, err = expectedOwner.StableMarshal(make([]byte, 1)) require.Panics(t, func() {
require.Error(t, err) expectedOwner.StableMarshal(make([]byte, 1))
})
}) })
t.Run("empty owner", func(t *testing.T) { t.Run("empty owner", func(t *testing.T) {