Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkumarpilli committed Dec 13, 2024
1 parent de7a18b commit c3c0b90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/v2/staking/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func TestRotateConsPubKey(t *testing.T) {
err = stakingKeeper.Params.Set(ctx, params)
assert.NilError(t, err)

addrs := simtestutil.AddTestAddrsIncremental(bankKeeper, stakingKeeper, ctx, 5, stakingKeeper.TokensFromConsensusPower(ctx, 1000))
addrs := simtestutil.AddTestAddrsIncremental(bankKeeper, stakingKeeper, ctx, 5, stakingKeeper.TokensFromConsensusPower(ctx, 100))
valAddrs := simtestutil.ConvertAddrsToValAddrs(addrs)

// create 5 validators
Expand All @@ -219,6 +219,10 @@ func TestRotateConsPubKey(t *testing.T) {
_, err = stakingKeeper.EndBlocker(ctx)
assert.NilError(t, err)

_, state := f.app.Deliver(t, ctx, nil)
_, err = f.app.Commit(state)
assert.NilError(t, err)

params, err = stakingKeeper.Params.Get(ctx)
assert.NilError(t, err)

Expand Down

0 comments on commit c3c0b90

Please sign in to comment.