Skip to content

Commit

Permalink
fix errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Sep 3, 2024
1 parent f8e8829 commit 48175e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestQueueVSCPacketsDoesNotResetConsumerValidatorsHeights(t *testing.T) {
err := providerKeeper.SetConsumerPowerShapingParameters(ctx, "consumerId", providertypes.PowerShapingParameters{})
require.NoError(t, err)

err := providerKeeper.QueueVSCPackets(ctx)
err = providerKeeper.QueueVSCPackets(ctx)
require.NoError(t, err)

// the height of consumer validator A should not be modified because A was already a consumer validator
Expand Down Expand Up @@ -674,7 +674,7 @@ func TestEndBlockVSU(t *testing.T) {

// with block height of 1 we do not expect any queueing of VSC packets
ctx = ctx.WithBlockHeight(1)
_, err := providerKeeper.EndBlockVSU(ctx)
_, err = providerKeeper.EndBlockVSU(ctx)
require.NoError(t, err)
require.Equal(t, 0, len(providerKeeper.GetPendingVSCPackets(ctx, consumerId)))

Expand Down Expand Up @@ -821,7 +821,7 @@ func TestQueueVSCPacketsWithPowerCapping(t *testing.T) {
params.MaxProviderConsensusValidators = 180
providerKeeper.SetParams(ctx, params)

err := providerKeeper.QueueVSCPackets(ctx)
err = providerKeeper.QueueVSCPackets(ctx)
require.NoError(t, err)

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

0 comments on commit 48175e8

Please sign in to comment.