Skip to content

Commit

Permalink
Refactor gaia helpers setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lg committed Nov 9, 2022
1 parent 94b8d02 commit e8e806c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestGaiaApp_BlockedModuleAccountAddrs(t *testing.T) {
}

func TestGaiaApp_Export(t *testing.T) {
app := gaiahelpers.Setup(t, false, 1)
app := gaiahelpers.Setup(t)

_, err := app.ExportAppStateAndValidators(true, []string{})
require.NoError(t, err, "ExportAppStateAndValidators should not have an error")
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type EmptyAppOptions struct{}

func (EmptyAppOptions) Get(o string) interface{} { return nil }

func Setup(t *testing.T, isCheckTx bool, invCheckPeriod uint) *gaiaapp.GaiaApp {
func Setup(t *testing.T) *gaiaapp.GaiaApp {
t.Helper()

privVal := mock.NewPV()
Expand Down
2 changes: 1 addition & 1 deletion x/globalfee/ante/antetest/fee_test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type IntegrationTestSuite struct {
}

func (s *IntegrationTestSuite) SetupTest() {
app := gaiahelpers.Setup(s.T(), false, 1)
app := gaiahelpers.Setup(s.T())
ctx := app.BaseApp.NewContext(false, tmproto.Header{
ChainID: fmt.Sprintf("test-chain-%s", tmrand.Str(4)),
Height: 1,
Expand Down

0 comments on commit e8e806c

Please sign in to comment.