Skip to content

Commit 5d4852f

Browse files
GaloretkaAlex | Interchain Labs
andauthored
Fix error comparison in TestAminoCodecUnpackAnyFails to use require.EqualError (#24932)
Co-authored-by: Alex | Interchain Labs <[email protected]>
1 parent 73c51b1 commit 5d4852f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codec/amino_codec_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package codec_test
22

33
import (
44
"bytes"
5-
"errors"
65
"testing"
76

87
"github.com/stretchr/testify/require"
@@ -110,5 +109,5 @@ func TestAminoCodecUnpackAnyFails(t *testing.T) {
110109
cdc := codec.NewAminoCodec(createTestCodec())
111110
err := cdc.UnpackAny(new(types.Any), &testdata.Cat{})
112111
require.Error(t, err)
113-
require.Equal(t, err, errors.New("AminoCodec can't handle unpack protobuf Any's"))
112+
require.EqualError(t, err, "AminoCodec can't handle unpack protobuf Any's")
114113
}

0 commit comments

Comments
 (0)