From ca917e42d03a91ef368b3bca1037300910baf179 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 13 Aug 2020 16:44:01 +0300 Subject: [PATCH] Fix marshaller test --- v2/refs/marshal_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/refs/marshal_test.go b/v2/refs/marshal_test.go index 7bf3d6f..8f822fb 100644 --- a/v2/refs/marshal_test.go +++ b/v2/refs/marshal_test.go @@ -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) {