Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Aug 22, 2024
1 parent 7c43f6d commit 73ce1f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/ccv/provider/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package keeper_test

import (
"fmt"
"github.com/cosmos/interchain-security/v5/x/ccv/provider/keeper"
"testing"
"time"

"github.com/cosmos/interchain-security/v5/x/ccv/provider/keeper"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -113,7 +114,8 @@ func TestQueryConsumerValidators(t *testing.T) {
require.Error(t, err)

// set consumer initialization and power shaping params
pk.SetConsumerInitializationParameters(ctx, consumerId, types.ConsumerInitializationParameters{SpawnTime: ctx.BlockTime().Add(time.Hour)})
blockTimePlus1Hour := ctx.BlockTime().Add(time.Hour)
pk.SetConsumerInitializationParameters(ctx, consumerId, types.ConsumerInitializationParameters{SpawnTime: &blockTimePlus1Hour})
pk.SetConsumerPowerShapingParameters(ctx, consumerId, types.PowerShapingParameters{Top_N: 0})

// create bonded validators
Expand Down

0 comments on commit 73ce1f6

Please sign in to comment.