Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Jul 21, 2023
1 parent 49cb0ac commit 6545c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func TestGRPCHistoricalInfo(t *testing.T) {

assert.NilError(t, f.stakingKeeper.HistoricalInfo.Set(
f.ctx,
height,
stakingtypes.GetHistoricalInfoKeyWithoutPrefix(height),
historicalInfo,
))

Expand All @@ -695,7 +695,7 @@ func TestGRPCHistoricalInfo(t *testing.T) {

assert.NilError(t, f.stakingKeeper.HistoricalInfo.Set(
f.ctx,
height,
stakingtypes.GetHistoricalInfoKeyWithoutPrefix(height),
historicalInfo,
))

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/staking/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func createValidatorAccs(t *testing.T, f *fixture) ([]sdk.AccAddress, []types.Va
sortedVals := make([]types.Validator, len(validators))
copy(sortedVals, validators)
hi := types.NewHistoricalInfo(header, sortedVals, f.stakingKeeper.PowerReduction(f.sdkCtx))
assert.NilError(t, f.stakingKeeper.HistoricalInfo.Set(f.sdkCtx, 5, hi))
assert.NilError(t, f.stakingKeeper.HistoricalInfo.Set(f.sdkCtx, types.GetHistoricalInfoKeyWithoutPrefix(5), hi))

return addrs, validators
}
Expand Down

0 comments on commit 6545c84

Please sign in to comment.