clawchain/x/messaging/keeper/param_executor_test.go
caelum0x cc12b2b899 feat: core chain updates — clawchain, governance, marketplace, tokenfactory, IBC, build
Updates across core modules, app wiring, IBC config, governance execution
tests, tokenfactory keeper/module, Makefile build targets, release CI,
and dependency updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 22:14:09 +03:00

27 lines
588 B
Go

package keeper_test
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestUpdateParam_Messaging(t *testing.T) {
f := initFixture(t)
err := f.keeper.UpdateParam(f.ctx, "max_message_size", "8192")
require.NoError(t, err)
params, err := f.keeper.Params.Get(f.ctx)
require.NoError(t, err)
require.EqualValues(t, 8192, params.MaxMessageSize)
}
func TestUpdateParam_MessagingUnknownKey(t *testing.T) {
f := initFixture(t)
err := f.keeper.UpdateParam(f.ctx, "unknown", "1")
require.Error(t, err)
require.Contains(t, err.Error(), "unknown messaging param key")
}