Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantKoyalwar committed May 6, 2023
1 parent 40a15aa commit 86ffcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/paramfilter/test/param_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestParamFilter(t *testing.T) {
p := testProposal(proposal.NewParamChange(p[0], p[1], "value"))
err := handler(ctx, p)
require.Error(t, err)
require.Contains(t, err.Error(), "blocked parameter change")
require.Contains(t, err.Error(), "parameter can not be modified")
}

// ensure that we are not filtering out valid proposals
Expand All @@ -51,7 +51,7 @@ func TestParamFilter(t *testing.T) {
p := testProposal(validChange, invalidChange)
err := handler(ctx, p)
require.Error(t, err)
require.Contains(t, err.Error(), "blocked parameter change")
require.Contains(t, err.Error(), "parameter can not be modified")

ps := app.StakingKeeper.GetParams(ctx)
require.Equal(t, ps.MaxValidators, uint32(1))
Expand Down

0 comments on commit 86ffcb5

Please sign in to comment.