From e734e5375ec7b6872be35ce60a8fae5e0142f9fe Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 10:16:02 +0200 Subject: [PATCH] update ICS misbehaviour test --- tests/integration/misbehaviour.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 1628bf890c..9934f1d77b 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -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" ) @@ -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{