Skip to content

Commit

Permalink
update UT
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Apr 30, 2024
1 parent cbf46be commit 20398a0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions x/ccv/provider/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ func TestHandleSlashPacket(t *testing.T) {

providerConsAddr := cryptotestutil.NewCryptoIdentityFromIntSeed(7842334).ProviderConsAddress()
consumerConsAddr := cryptotestutil.NewCryptoIdentityFromIntSeed(784987634).ConsumerConsAddress()
// this "dummy" consensus address won't be stored on the provider states
dummyConsAddr := cryptotestutil.NewCryptoIdentityFromIntSeed(784987639).ConsumerConsAddress()

testCases := []struct {
name string
Expand All @@ -319,21 +317,6 @@ func TestHandleSlashPacket(t *testing.T) {
expectedSlashAcksLen int
expectedSlashAckConsumerConsAddress types.ConsumerConsAddress
}{
{
"validator isn't a consumer validator",
ccv.SlashPacketData{
Validator: abci.Validator{Address: dummyConsAddr.ToSdkConsAddr()},
ValsetUpdateId: validVscID,
Infraction: stakingtypes.Infraction_INFRACTION_DOWNTIME,
},
func(ctx sdk.Context, mocks testkeeper.MockedKeepers,
expectedPacketData ccv.SlashPacketData,
) []*gomock.Call {
return []*gomock.Call{}
},
1,
dummyConsAddr,
},
{
"unfound validator",
ccv.SlashPacketData{
Expand Down

0 comments on commit 20398a0

Please sign in to comment.