Skip to content

Commit

Permalink
update ICS misbehaviour test
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Jul 11, 2023
1 parent 2be79d7 commit e734e53
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integration/misbehaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/ibc-go/v4/modules/core/exported"
"github.com/cosmos/interchain-security/v2/x/ccv/provider/types"

ibcsolotypes "github.com/cosmos/ibc-go/v4/modules/light-clients/06-solomachine/types"
ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types"
tmtypes "github.com/tendermint/tendermint/types"
)
Expand Down Expand Up @@ -39,9 +41,14 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() {
altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()]
testCases := []struct {
name string
misbehaviour *ibctmtypes.Misbehaviour
misbehaviour exported.Misbehaviour
expPass bool
}{
{
"invalid misbehaviour client type - shouldn't pass",
&ibcsolotypes.Misbehaviour{},
false,
},
{
"invalid misbehaviour with empty header1 - shouldn't pass",
&ibctmtypes.Misbehaviour{
Expand Down

0 comments on commit e734e53

Please sign in to comment.