Fix error comparison in TestAminoCodecUnpackAnyFails to use require.EqualError (#24932)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
Galoretka 2025-07-10 19:06:17 +03:00 committed by GitHub
parent 73c51b169f
commit 5d4852f585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@ package codec_test
import (
"bytes"
"errors"
"testing"
"github.com/stretchr/testify/require"
@ -110,5 +109,5 @@ func TestAminoCodecUnpackAnyFails(t *testing.T) {
cdc := codec.NewAminoCodec(createTestCodec())
err := cdc.UnpackAny(new(types.Any), &testdata.Cat{})
require.Error(t, err)
require.Equal(t, err, errors.New("AminoCodec can't handle unpack protobuf Any's"))
require.EqualError(t, err, "AminoCodec can't handle unpack protobuf Any's")
}