Skip to content

Commit

Permalink
Fix relay test to set max provider consensus vals correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jul 19, 2024
1 parent e506aa9 commit d677de6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/ccv/provider/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,11 @@ func TestQueueVSCPacketsWithPowerCapping(t *testing.T) {
// set a power-capping of 40%
providerKeeper.SetValidatorsPowerCap(ctx, "chainID", 40)

// set max provider consensus validators to a value that is larger than the number of validators
params := providerKeeper.GetParams(ctx)
params.MaxProviderConsensusValidators = 180
providerKeeper.SetParams(ctx, params)

providerKeeper.QueueVSCPackets(ctx)

actualQueuedVSCPackets := providerKeeper.GetPendingVSCPackets(ctx, "chainID")
Expand Down

0 comments on commit d677de6

Please sign in to comment.