Skip to content

Commit

Permalink
test: fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed May 22, 2024
1 parent e0c9086 commit eac0ae6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 229 deletions.
7 changes: 1 addition & 6 deletions .idea/composable-cosmos.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func SetupWithGenesisValSet(
// add genesis acc tokens and delegated tokens to total supply
totalSupply = totalSupply.Add(b.Coins...)
}
fmt.Println("totalSupply", totalSupply)

// update total supply
bankGenesis := banktypes.NewGenesisState(banktypes.DefaultGenesisState().Params, balances, totalSupply, []banktypes.Metadata{}, []banktypes.SendEnabled{})
Expand Down
2 changes: 1 addition & 1 deletion custom/bank/bank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (suite *CustomBankTestSuite) TestTotalSupply() {
// when transfer via sdk transfer from A (module) -> B (contract)
coinToSendToB = sdk.NewCoin(sdk.DefaultBondDenom, transferAmount)
timeoutHeight = clienttypes.NewHeight(1, 110)
originAmt, err = sdkmath.NewIntFromString("10000000001100000000000")
originAmt, err = sdkmath.NewIntFromString("100000004100001000000")
chainBOriginSuply = sdk.NewCoin("stake", originAmt)
)
suite.Require().True(err)
Expand Down
221 changes: 0 additions & 221 deletions tests/e2e/ibc_fees_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion x/tx-boundary/ante/antetest/ante_test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package antetest

import (
"context"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"time"

"cosmossdk.io/math"
Expand Down Expand Up @@ -40,7 +41,7 @@ type AnteTestSuite struct {

func (suite *AnteTestSuite) SetupTest() {
suite.app, suite.delegator, suite.validators = helpers.SetupComposableAppWithValSetWithGenAccout(suite.T())
suite.ctx = suite.app.BaseApp.NewContext(false)
suite.ctx = suite.app.BaseApp.NewContextLegacy(false, tmproto.Header{Height: 1, ChainID: "centauri-1", Time: time.Now().UTC()})
app.FundAccount(suite.app.BankKeeper, suite.ctx, suite.delegator, BaseBalance)

encodingConfig := app.MakeEncodingConfig()
Expand Down

0 comments on commit eac0ae6

Please sign in to comment.