diff --git a/x/shared/types/params_test.go b/x/shared/types/params_test.go index f64cc33af..bb68a41ce 100644 --- a/x/shared/types/params_test.go +++ b/x/shared/types/params_test.go @@ -70,3 +70,33 @@ func TestParams_ValidateClaimWindowOpenOffsetBlocks(t *testing.T) { }) } } + +func TestParams_ValidateClaimWindowCloseOffsetBlocks(t *testing.T) { + tests := []struct { + desc string + claimWindowCloseOffsetBlocks any + err error + }{ + { + desc: "invalid type", + claimWindowCloseOffsetBlocks: "invalid", + err: ErrSharedParamInvalid.Wrapf("invalid parameter type: %T", "invalid"), + }, + { + desc: "valid ClaimWindowCloseOffsetBlocks", + claimWindowCloseOffsetBlocks: uint64(4), + }, + } + + for _, tt := range tests { + t.Run(tt.desc, func(t *testing.T) { + err := ValidateClaimWindowCloseOffsetBlocks(tt.claimWindowCloseOffsetBlocks) + if tt.err != nil { + require.Error(t, err) + require.Contains(t, err.Error(), tt.err.Error()) + } else { + require.NoError(t, err) + } + }) + } +}