chore: update errors sub-module module path (#11832)

This commit is contained in:
Aleksandr Bezobchuk
2022-04-29 15:04:33 -04:00
committed by GitHub
parent 2add1bae8f
commit 9361b8501c
14 changed files with 24 additions and 27 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ func (s *abciTestSuite) TestABCIInfoStacktrace() {
},
}
const thisTestSrc = "github.com/cosmos/cosmos-sdk/errors.(*abciTestSuite).TestABCIInfoStacktrace"
const thisTestSrc = "cosmossdk.io/errors.(*abciTestSuite).TestABCIInfoStacktrace"
for testName, tc := range cases {
_, _, log := ABCIInfo(tc.err, tc.debug)
+3 -6
View File
@@ -3,14 +3,11 @@ package errors
import (
stdlib "errors"
"fmt"
"testing"
grpcstatus "google.golang.org/grpc/status"
"google.golang.org/grpc/codes"
"github.com/pkg/errors"
"github.com/stretchr/testify/suite"
"google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"
"testing"
)
type errorsTestSuite struct {
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/cosmos/cosmos-sdk/errors
module cosmossdk.io/errors
go 1.18
+3 -3
View File
@@ -48,9 +48,9 @@ func trimInternal(st errors.StackTrace) errors.StackTrace {
// manual error creation, or runtime for caught panics
for matchesFunc(st[0],
// where we create errors
"github.com/cosmos/cosmos-sdk/errors.Wrap",
"github.com/cosmos/cosmos-sdk/errors.Wrapf",
"github.com/cosmos/cosmos-sdk/errors.WithType",
"cosmossdk.io/errors.Wrap",
"cosmossdk.io/errors.Wrapf",
"cosmossdk.io/errors.WithType",
// runtime are added on panics
"runtime.",
// _test is defined in coverage tests, causing failure
+2 -2
View File
@@ -32,8 +32,8 @@ func (s *errorsTestSuite) TestStackTrace() {
// Wrapping code is unwanted in the errors stack trace.
unwantedSrc := []string{
"github.com/cosmos/cosmos-sdk/errors.Wrap\n",
"github.com/cosmos/cosmos-sdk/errors.Wrapf\n",
"cosmossdk.io/errors.Wrap\n",
"cosmossdk.io/errors.Wrapf\n",
"runtime.goexit\n",
}
const thisTestSrc = "errors/stacktrace_test.go"