Skip to content

Commit

Permalink
fix slashing test
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Aug 8, 2023
1 parent 34ccf91 commit 99c5df5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ func (s *CCVTestSuite) TestSlashPacketAcknowledgement() {

// Mock a proper slash packet from consumer
spd := keepertestutil.GetNewSlashPacketData()

// We don't want truly randomized fields, infraction needs to be specified
if spd.Infraction == stakingtypes.Infraction_INFRACTION_UNSPECIFIED {
spd.Infraction = stakingtypes.Infraction_INFRACTION_DOUBLE_SIGN
}
cpd := ccv.NewConsumerPacketData(ccv.SlashPacket,
&ccv.ConsumerPacketData_SlashPacketData{
SlashPacketData: &spd,
Expand Down

0 comments on commit 99c5df5

Please sign in to comment.