Skip to content

Commit 2e3f287

Browse files
authored
Merge branch 'main' into kocubinski/fix-nil-iter
2 parents 8883809 + b515372 commit 2e3f287

File tree

14 files changed

+1094
-504
lines changed

14 files changed

+1094
-504
lines changed

scripts/mockgen.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ $mockgen_cmd -source=x/auth/ante/expected_keepers.go -package testutil -destinat
2020
$mockgen_cmd -source=x/authz/expected_keepers.go -package testutil -destination x/authz/testutil/expected_keepers_mocks.go
2121
$mockgen_cmd -source=x/bank/types/expected_keepers.go -package testutil -destination x/bank/testutil/expected_keepers_mocks.go
2222
$mockgen_cmd -source=x/evidence/types/expected_keepers.go -package testutil -destination x/evidence/testutil/expected_keepers_mocks.go
23+
$mockgen_cmd -source=x/slashing/types/expected_keepers.go -package testutil -destination x/slashing/testutil/expected_keepers_mocks.go

tests/e2e/slashing/client/testutil/cli_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ import (
88

99
"github.com/cosmos/cosmos-sdk/simapp"
1010
"github.com/cosmos/cosmos-sdk/testutil/network"
11-
clienttestutil "github.com/cosmos/cosmos-sdk/x/slashing/client/testutil"
1211

1312
"github.com/stretchr/testify/suite"
1413
)
1514

16-
func TestIntegrationTestSuite(t *testing.T) {
15+
func TestEndToEndTestSuite(t *testing.T) {
1716
cfg := network.DefaultConfig(simapp.NewTestNetworkFixture)
1817
cfg.NumValidators = 1
19-
suite.Run(t, clienttestutil.NewIntegrationTestSuite(cfg))
18+
suite.Run(t, NewEndToEndTestSuite(cfg))
2019
}

x/slashing/client/testutil/grpc.go renamed to tests/e2e/slashing/client/testutil/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/cosmos/cosmos-sdk/x/slashing/types"
1414
)
1515

16-
func (s *IntegrationTestSuite) TestGRPCQueries() {
16+
func (s *EndToEndTestSuite) TestGRPCQueries() {
1717
val := s.network.Validators[0]
1818
baseURL := val.APIAddress
1919

x/slashing/client/testutil/suite.go renamed to tests/e2e/slashing/client/testutil/suite.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ import (
1515
"github.com/cosmos/cosmos-sdk/x/slashing/client/cli"
1616
)
1717

18-
type IntegrationTestSuite struct {
18+
type EndToEndTestSuite struct {
1919
suite.Suite
2020

2121
cfg network.Config
2222
network *network.Network
2323
}
2424

25-
func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite {
26-
return &IntegrationTestSuite{cfg: cfg}
25+
func NewEndToEndTestSuite(cfg network.Config) *EndToEndTestSuite {
26+
return &EndToEndTestSuite{cfg: cfg}
2727
}
2828

2929
// SetupSuite executes bootstrapping logic before all the tests, i.e. once before
3030
// the entire suite, start executing.
31-
func (s *IntegrationTestSuite) SetupSuite() {
31+
func (s *EndToEndTestSuite) SetupSuite() {
3232
s.T().Log("setting up integration test suite")
3333

3434
var err error
@@ -41,12 +41,12 @@ func (s *IntegrationTestSuite) SetupSuite() {
4141

4242
// TearDownSuite performs cleanup logic after all the tests, i.e. once after the
4343
// entire suite, has finished executing.
44-
func (s *IntegrationTestSuite) TearDownSuite() {
44+
func (s *EndToEndTestSuite) TearDownSuite() {
4545
s.T().Log("tearing down integration test suite")
4646
s.network.Cleanup()
4747
}
4848

49-
func (s *IntegrationTestSuite) TestGetCmdQuerySigningInfo() {
49+
func (s *EndToEndTestSuite) TestGetCmdQuerySigningInfo() {
5050
val := s.network.Validators[0]
5151
pubKeyBz, err := s.cfg.Codec.MarshalInterfaceJSON(val.PubKey)
5252
s.Require().NoError(err)
@@ -104,7 +104,7 @@ tombstoned: false`, sdk.ConsAddress(val.PubKey.Address())),
104104
}
105105
}
106106

107-
func (s *IntegrationTestSuite) TestGetCmdQueryParams() {
107+
func (s *EndToEndTestSuite) TestGetCmdQueryParams() {
108108
val := s.network.Validators[0]
109109

110110
testCases := []struct {
@@ -142,7 +142,7 @@ slash_fraction_downtime: "0.010000000000000000"`,
142142
}
143143
}
144144

145-
func (s *IntegrationTestSuite) TestNewUnjailTxCmd() {
145+
func (s *EndToEndTestSuite) TestNewUnjailTxCmd() {
146146
val := s.network.Validators[0]
147147
testCases := []struct {
148148
name string

0 commit comments

Comments
 (0)