From 3bba853c3e2fd6a67ac266abc05155bf4762e7ce Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 22 Sep 2020 09:53:35 +0300 Subject: [PATCH] rpc/client: use standard errors package in tests --- pkg/rpc/client/rpc_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/rpc/client/rpc_test.go b/pkg/rpc/client/rpc_test.go index 0c0212fa1..9817e03ab 100644 --- a/pkg/rpc/client/rpc_test.go +++ b/pkg/rpc/client/rpc_test.go @@ -31,7 +31,6 @@ import ( "github.com/nspcc-dev/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -296,7 +295,7 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{ result: func(c *Client) interface{} { member, err := keys.NewPublicKeyFromString("02103a7f7dd016558597f7960d27c516a4394fd968b9e65155eb4b013e4040406e") if err != nil { - panic(errors.Wrap(err, "failed to decode public key")) + panic(fmt.Errorf("failed to decode public key: %w", err)) } return keys.PublicKeys{member} },