Fix error comparison in TestAminoCodecUnpackAnyFails to use require.EqualError (#24932)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
parent
73c51b169f
commit
5d4852f585
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user