Skip to content

Commit

Permalink
chore: unexport params test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Sep 24, 2024
1 parent d3563f5 commit f4945c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/integration/params/update_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ import (
"github.com/pokt-network/poktroll/testutil/integration/suites"
)

// MsgUpdateParamSuite is a test suite which exercises the MsgUpdateParam message
// msgUpdateParamSuite is a test suite which exercises the MsgUpdateParam message
// for each poktroll module via authz, as would be done in a live network in order
// to update **individual** parameter values for a given module.
// NB: Not to be confused with MsgUpdateParams (plural), which updates all parameter
// values for a module.
type MsgUpdateParamSuite struct {
type msgUpdateParamSuite struct {
suites.ParamsSuite

unauthorizedAddr cosmostypes.AccAddress
}

func TestUpdateParamSuite(t *testing.T) {
suite.Run(t, new(MsgUpdateParamSuite))
suite.Run(t, new(msgUpdateParamSuite))
}

func (s *MsgUpdateParamSuite) SetupSubTest() {
func (s *msgUpdateParamSuite) SetupSubTest() {
// Create a fresh integration app for each test.
s.NewApp(s.T())

Expand All @@ -42,7 +42,7 @@ func (s *MsgUpdateParamSuite) SetupSubTest() {
s.unauthorizedAddr = nextAcct.Address
}

func (s *MsgUpdateParamSuite) TestUnauthorizedMsgUpdateParamFails() {
func (s *msgUpdateParamSuite) TestUnauthorizedMsgUpdateParamFails() {
for _, moduleName := range suites.MsgUpdateParamEnabledModuleNames {
moduleCfg := suites.ModuleParamConfigMap[moduleName]

Expand Down Expand Up @@ -76,7 +76,7 @@ func (s *MsgUpdateParamSuite) TestUnauthorizedMsgUpdateParamFails() {
}
}

func (s *MsgUpdateParamSuite) TestAuthorizedMsgUpdateParamSucceeds() {
func (s *msgUpdateParamSuite) TestAuthorizedMsgUpdateParamSucceeds() {
for _, moduleName := range suites.MsgUpdateParamEnabledModuleNames {
moduleCfg := suites.ModuleParamConfigMap[moduleName]

Expand Down
12 changes: 6 additions & 6 deletions tests/integration/params/update_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"github.com/pokt-network/poktroll/testutil/integration/suites"
)

// MsgUpdateParamsSuite is a test suite which exercises the MsgUpdateParams message
// msgUpdateParamsSuite is a test suite which exercises the MsgUpdateParams message
// for each poktroll module via authz, as would be done in a live network in order
// to update **all** parameter values for a given module.
// NB: Not to be confused with MsgUpdateParam (singular), which updates a single
// parameter value for a module.
type MsgUpdateParamsSuite struct {
type msgUpdateParamsSuite struct {
suites.ParamsSuite

unauthorizedAddr cosmostypes.AccAddress
Expand All @@ -29,10 +29,10 @@ type MsgUpdateParamsSuite struct {
// reflection to construct the messages and make assertions about the results to
// improve maintainability and reduce boilerplate.
func TestUpdateParamsSuite(t *testing.T) {
suite.Run(t, &MsgUpdateParamsSuite{})
suite.Run(t, &msgUpdateParamsSuite{})
}

func (s *MsgUpdateParamsSuite) SetupTest() {
func (s *msgUpdateParamsSuite) SetupTest() {
// Create a fresh integration app for each test.
s.NewApp(s.T())

Expand All @@ -46,7 +46,7 @@ func (s *MsgUpdateParamsSuite) SetupTest() {
s.unauthorizedAddr = nextAcct.Address
}

func (s *MsgUpdateParamsSuite) TestUnauthorizedMsgUpdateParamsFails() {
func (s *msgUpdateParamsSuite) TestUnauthorizedMsgUpdateParamsFails() {
for _, moduleName := range s.GetPoktrollModuleNames() {
moduleCfg := suites.ModuleParamConfigMap[moduleName]

Expand All @@ -69,7 +69,7 @@ func (s *MsgUpdateParamsSuite) TestUnauthorizedMsgUpdateParamsFails() {
}
}

func (s *MsgUpdateParamsSuite) TestAuthorizedMsgUpdateParamsSucceeds() {
func (s *msgUpdateParamsSuite) TestAuthorizedMsgUpdateParamsSucceeds() {
for _, moduleName := range s.GetPoktrollModuleNames() {
moduleCfg := suites.ModuleParamConfigMap[moduleName]

Expand Down

0 comments on commit f4945c4

Please sign in to comment.