Skip to content

Commit

Permalink
fix issue in GetSimApp
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Jun 27, 2023
1 parent b366fb4 commit 36dec7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func TestChangeValSet(t *testing.T) {
amount2, ok := sdkmath.NewIntFromString("30000000000000000000")
require.True(t, ok)

val := chainA.GetSimApp().StakingKeeper.GetValidators(chainA.GetContext(), 4)
val, err := chainA.GetSimApp().StakingKeeper.GetValidators(chainA.GetContext(), 4)
require.NoError(t, err)

chainA.GetSimApp().StakingKeeper.Delegate(chainA.GetContext(), chainA.SenderAccounts[1].SenderAccount.GetAddress(), //nolint:errcheck // ignore error for test
amount, types.Unbonded, val[1], true)
Expand All @@ -35,7 +36,7 @@ func TestChangeValSet(t *testing.T) {
coord.CommitBlock(chainA)

// verify that update clients works even after validator update goes into effect
err := path.EndpointB.UpdateClient()
err = path.EndpointB.UpdateClient()
require.NoError(t, err)
err = path.EndpointB.UpdateClient()
require.NoError(t, err)
Expand Down

0 comments on commit 36dec7f

Please sign in to comment.