Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: check all errors in tests #5104

Merged
merged 20 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ linters:
- goconst
- gofmt
- goimports
# - gofumpt
- goheader
- gomodguard
- goprintffuncname
Expand All @@ -30,14 +29,14 @@ linters:
- misspell
- nakedret
- nilnil
- paralleltest
- promlinter
- staticcheck
- stylecheck
- tenv
- thelper
- testpackage
- tparallel
- typecheck
- thelper
- unconvert
- unused
- whitespace
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v12/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (suite *UpgradeTestSuite) TestPoolMigration() {
plan := upgradetypes.Plan{Name: "v12", Height: dummyUpgradeHeight}
err := suite.App.UpgradeKeeper.ScheduleUpgrade(suite.Ctx, plan)
suite.Require().NoError(err)
plan, exists := suite.App.UpgradeKeeper.GetUpgradePlan(suite.Ctx)
_, exists := suite.App.UpgradeKeeper.GetUpgradePlan(suite.Ctx)
suite.Require().True(exists)

suite.Ctx = suite.Ctx.WithBlockHeight(dummyUpgradeHeight)
Expand Down
3 changes: 1 addition & 2 deletions app/upgrades/v13/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func dummyUpgrade(suite *UpgradeTestSuite) {
plan := upgradetypes.Plan{Name: "v13", Height: dummyUpgradeHeight}
err := suite.App.UpgradeKeeper.ScheduleUpgrade(suite.Ctx, plan)
suite.Require().NoError(err)
plan, exists := suite.App.UpgradeKeeper.GetUpgradePlan(suite.Ctx)
_, exists := suite.App.UpgradeKeeper.GetUpgradePlan(suite.Ctx)
suite.Require().True(exists)

suite.Ctx = suite.Ctx.WithBlockHeight(dummyUpgradeHeight)
Expand Down Expand Up @@ -73,7 +73,6 @@ func (suite *UpgradeTestSuite) TestUpgrade() {
// Same comment as above: this was the case when the upgrade happened, but we don't have accounts anymore
// hasAcc := suite.App.AccountKeeper.HasAccount(suite.Ctx, ibc_hooks.WasmHookModuleAccountAddr)
// suite.Require().False(hasAcc)

},
func() { dummyUpgrade(suite) },
func() {
Expand Down
4 changes: 4 additions & 0 deletions app/upgrades/v15/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (suite *UpgradeTestSuite) TestMigrateBalancerToStablePools() {

// shares before migration
balancerPool, err := gammKeeper.GetCFMMPool(suite.Ctx, poolID)
suite.Require().NoError(err)
balancerLiquidity, err := gammKeeper.GetTotalPoolLiquidity(suite.Ctx, balancerPool.GetId())
suite.Require().NoError(err)

Expand Down Expand Up @@ -240,13 +241,16 @@ func (suite *UpgradeTestSuite) TestSetRateLimits() {

state, err := suite.App.WasmKeeper.QuerySmart(suite.Ctx, addr, []byte(`{"get_quotas": {"channel_id": "any", "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2"}}`))
suite.Require().Greaterf(len(state), 0, "state should not be empty")
suite.Require().NoError(err)

state, err = suite.App.WasmKeeper.QuerySmart(suite.Ctx, addr, []byte(`{"get_quotas": {"channel_id": "any", "denom": "ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858"}}`))
suite.Require().Greaterf(len(state), 0, "state should not be empty")
suite.Require().NoError(err)

// This is the last one. If the others failed the upgrade would've panicked before adding this one
state, err = suite.App.WasmKeeper.QuerySmart(suite.Ctx, addr, []byte(`{"get_quotas": {"channel_id": "any", "denom": "ibc/E6931F78057F7CC5DA0FD6CEF82FF39373A6E0452BF1FD76910B93292CF356C1"}}`))
suite.Require().Greaterf(len(state), 0, "state should not be empty")
suite.Require().NoError(err)
}

func (suite *UpgradeTestSuite) validateCons(coinsA, coinsB sdk.Coins) {
Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v16/concentrated_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ func (suite *ConcentratedUpgradeTestSuite) TestCreateCanonicalConcentratedLiuqid
suite.Require().NoError(err)

// Get balancer gauges.
gaugeToRedirect, err := suite.App.PoolIncentivesKeeper.GetPoolGaugeId(suite.Ctx, balancerPool.GetId(), longestLockableDuration)
gaugeToRedirect, _ := suite.App.PoolIncentivesKeeper.GetPoolGaugeId(suite.Ctx, balancerPool.GetId(), longestLockableDuration)

gaugeToNotRedeirect, err := suite.App.PoolIncentivesKeeper.GetPoolGaugeId(suite.Ctx, balancerId2, longestLockableDuration)
gaugeToNotRedeirect, _ := suite.App.PoolIncentivesKeeper.GetPoolGaugeId(suite.Ctx, balancerId2, longestLockableDuration)

originalDistrInfo := poolincentivestypes.DistrInfo{
TotalWeight: sdk.NewInt(100),
Expand Down
11 changes: 5 additions & 6 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package e2e

import (
"fmt"
"os"
"strconv"
"testing"
Expand Down Expand Up @@ -40,7 +39,7 @@ type IntegrationTestSuite struct {
func TestIntegrationTestSuite(t *testing.T) {
isEnabled := os.Getenv(e2eEnabledEnv)
if isEnabled != "True" {
t.Skip(fmt.Sprintf("e2e test is disabled. To run, set %s to True", e2eEnabledEnv))
t.Skipf("e2e test is disabled. To run, set %s to True", e2eEnabledEnv)
}
suite.Run(t, new(IntegrationTestSuite))
}
Expand All @@ -64,22 +63,22 @@ func (s *IntegrationTestSuite) SetupSuite() {
s.skipUpgrade, err = strconv.ParseBool(str)
s.Require().NoError(err)
if s.skipUpgrade {
s.T().Log(fmt.Sprintf("%s was true, skipping upgrade tests", skipUpgradeEnv))
s.T().Logf("%s was true, skipping upgrade tests", skipUpgradeEnv)
}
}
upgradeSettings.IsEnabled = !s.skipUpgrade

if str := os.Getenv(forkHeightEnv); len(str) > 0 {
upgradeSettings.ForkHeight, err = strconv.ParseInt(str, 0, 64)
s.Require().NoError(err)
s.T().Log(fmt.Sprintf("fork upgrade is enabled, %s was set to height %d", forkHeightEnv, upgradeSettings.ForkHeight))
s.T().Logf("fork upgrade is enabled, %s was set to height %d", forkHeightEnv, upgradeSettings.ForkHeight)
}

if str := os.Getenv(skipIBCEnv); len(str) > 0 {
s.skipIBC, err = strconv.ParseBool(str)
s.Require().NoError(err)
if s.skipIBC {
s.T().Log(fmt.Sprintf("%s was true, skipping IBC tests", skipIBCEnv))
s.T().Logf("%s was true, skipping IBC tests", skipIBCEnv)
}
}

Expand All @@ -102,7 +101,7 @@ func (s *IntegrationTestSuite) SetupSuite() {

if str := os.Getenv(upgradeVersionEnv); len(str) > 0 {
upgradeSettings.Version = str
s.T().Log(fmt.Sprintf("upgrade version set to %s", upgradeSettings.Version))
s.T().Logf("upgrade version set to %s", upgradeSettings.Version)
}

s.configurer, err = configurer.New(s.T(), !s.skipIBC, isDebugLogEnabled, upgradeSettings)
Expand Down
11 changes: 6 additions & 5 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ func (s *IntegrationTestSuite) TestConcentratedLiquidity() {
}

// Change the parameter to enable permisionless pool creation.
chainA.SubmitParamChangeProposal("concentratedliquidity", string(cltypes.KeyIsPermisionlessPoolCreationEnabled), []byte("true"))
err = chainA.SubmitParamChangeProposal("concentratedliquidity", string(cltypes.KeyIsPermisionlessPoolCreationEnabled), []byte("true"))
s.Require().NoError(err)

// Confirm that the parameter has been changed.
isPermisionlessCreationEnabledStr = chainANode.QueryParams(cltypes.ModuleName, string(cltypes.KeyIsPermisionlessPoolCreationEnabled))
Expand Down Expand Up @@ -599,7 +600,7 @@ func (s *IntegrationTestSuite) TestConcentratedLiquidity() {
addr1BalancesAfter.AmountOf("uion"),
)

// Assert position that was active thoughout the whole swap:
// Assert position that was active throughout the whole swap:

// Track balance of address3
addr3BalancesBefore = s.addrBalance(chainANode, address3)
Expand Down Expand Up @@ -770,7 +771,7 @@ func (s *IntegrationTestSuite) TestStableSwapPostUpgrade() {
}

// TestGeometricTwapMigration tests that the geometric twap record
// migration runs succesfully. It does so by attempting to execute
// migration runs successfully. It does so by attempting to execute
// the swap on the pool created pre-upgrade. When a pool is created
// pre-upgrade, twap records are initialized for a pool. By runnning
// a swap post-upgrade, we confirm that the geometric twap was initialized
Expand Down Expand Up @@ -987,7 +988,6 @@ func (s *IntegrationTestSuite) TestIBCTokenTransferRateLimiting() {
val := node.QueryParams(ibcratelimittypes.ModuleName, string(ibcratelimittypes.KeyContractAddress))
return strings.Contains(val, param)
}, time.Second*30, time.Millisecond*500)

}
}

Expand Down Expand Up @@ -1100,6 +1100,7 @@ func (s *IntegrationTestSuite) TestPacketForwarding() {

// sender wasm addr
senderBech32, err := ibchookskeeper.DeriveIntermediateSender("channel-0", validatorAddr, "osmo")
s.Require().NoError(err)
s.Require().Eventually(func() bool {
response, err := nodeA.QueryWasmSmartObject(contractAddr, fmt.Sprintf(`{"get_count": {"addr": "%s"}}`, senderBech32))
if err != nil {
Expand Down Expand Up @@ -1154,7 +1155,7 @@ func (s *IntegrationTestSuite) TestAddToExistingLock() {
// TestArithmeticTWAP tests TWAP by creating a pool, performing a swap.
// These two operations should create TWAP records.
// Then, we wait until the epoch for the records to be pruned.
// The records are guranteed to be pruned at the next epoch
// The records are guaranteed to be pruned at the next epoch
// because twap keep time = epoch time / 4 and we use a timer
// to wait for at least the twap keep time.
func (s *IntegrationTestSuite) TestArithmeticTWAP() {
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/initialization/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestChainInit(t *testing.T) {
}
dataDir, err = os.MkdirTemp("", "osmosis-e2e-testnet-test")
)
require.NoError(t, err)

chain, err := initialization.InitChain(id, dataDir, nodeConfigs, time.Second*3, time.Second, forkHeight)
require.NoError(t, err)
Expand Down Expand Up @@ -104,6 +105,7 @@ func TestSingleNodeInit(t *testing.T) {
}
dataDir, err = os.MkdirTemp("", "osmosis-e2e-testnet-test")
)
require.NoError(t, err)

// Setup
existingChain, err := initialization.InitChain(id, dataDir, existingChainNodeConfigs, time.Second*3, time.Second, forkHeight)
Expand All @@ -116,6 +118,7 @@ func TestSingleNodeInit(t *testing.T) {
}

func validateNode(t *testing.T, chainId string, dataDir string, expectedConfig *initialization.NodeConfig, actualNode *initialization.Node) {
t.Helper()
require.Equal(t, fmt.Sprintf("%s-node-%s", chainId, expectedConfig.Name), actualNode.Name)
require.Equal(t, expectedConfig.IsValidator, actualNode.IsValidator)

Expand Down
46 changes: 30 additions & 16 deletions tests/ibc-hooks/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ func (suite *HooksTestSuite) receivePacketWithSequence(receiver, memo string, pr

// recv in chain a
res, err := suite.pathAB.EndpointA.RecvPacketWithResult(packet)
suite.Require().NoError(err)

// get the ack from the chain a's response
ack, err := ibctesting.ParseAckFromEvents(res.GetEvents())
Expand Down Expand Up @@ -593,15 +594,17 @@ func (suite *HooksTestSuite) TestAcks() {
callbackMemo := fmt.Sprintf(`{"ibc_callback":"%s"}`, addr)
// Send IBC transfer with the memo with crosschain-swap instructions
transferMsg := NewMsgTransfer(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1000)), suite.chainA.SenderAccount.GetAddress().String(), addr.String(), "channel-0", callbackMemo)
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// The test contract will increment the counter for itself every time it receives an ack
state := suite.chainA.QueryContract(
&suite.Suite, addr,
[]byte(fmt.Sprintf(`{"get_count": {"addr": "%s"}}`, addr)))
suite.Require().Equal(`{"count":1}`, state)

suite.FullSend(transferMsg, AtoB)
_, _, _, err = suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)
state = suite.chainA.QueryContract(
&suite.Suite, addr,
[]byte(fmt.Sprintf(`{"get_count": {"addr": "%s"}}`, addr)))
Expand Down Expand Up @@ -792,17 +795,20 @@ func (suite *HooksTestSuite) SetupCrosschainRegistry(chainName Chain) (sdk.AccAd

// Send some token0 tokens from C to B
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainC.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), "channel-0", "")
suite.FullSend(transferMsg, CtoB)
_, _, _, err = suite.FullSend(transferMsg, CtoB)
suite.Require().NoError(err)

// Send some token0 tokens from B to A
transferMsg = NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainB.SenderAccount.GetAddress().String(), suite.chainA.SenderAccount.GetAddress().String(), "channel-0", "")
suite.FullSend(transferMsg, BtoA)
_, _, _, err = suite.FullSend(transferMsg, BtoA)
suite.Require().NoError(err)

// Send some token0 tokens from C to B to A
denomTrace0CB := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", suite.pathBC.EndpointA.ChannelID, "token0"))
token0CB := denomTrace0CB.IBCDenom()
transferMsg = NewMsgTransfer(sdk.NewCoin(token0CB, sdk.NewInt(2000)), suite.chainB.SenderAccount.GetAddress().String(), suite.chainA.SenderAccount.GetAddress().String(), "channel-0", "")
suite.FullSend(transferMsg, BtoA)
_, _, _, err = suite.FullSend(transferMsg, BtoA)
suite.Require().NoError(err)

// Denom traces
CBAPath := fmt.Sprintf("transfer/%s/transfer/%s", suite.pathAB.EndpointA.ChannelID, suite.pathBC.EndpointA.ChannelID)
Expand Down Expand Up @@ -1060,7 +1066,8 @@ func (suite *HooksTestSuite) TestCrosschainSwapsViaIBCTest() {
_, crosschainAddr := suite.SetupCrosschainSwaps(ChainA)
// Send some token0 tokens to B so that there are ibc tokens to send to A and crosschain-swap
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when swapped via IBC
denomTrace0 := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", "channel-0", "token0"))
Expand Down Expand Up @@ -1110,7 +1117,8 @@ func (suite *HooksTestSuite) TestCrosschainSwapsViaIBCBadAck() {
_, crosschainAddr := suite.SetupCrosschainSwaps(ChainA)
// Send some token0 tokens to B so that there are ibc tokens to send to A and crosschain-swap
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when swapped via IBC
denomTrace0 := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", "channel-0", "token0"))
Expand Down Expand Up @@ -1205,7 +1213,8 @@ func (suite *HooksTestSuite) TestCrosschainSwapsViaIBCBadSwap() {
_, crosschainAddr := suite.SetupCrosschainSwaps(ChainA)
// Send some token0 tokens to B so that there are ibc tokens to send to A and crosschain-swap
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when swapped via IBC
denomTrace0 := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", "channel-0", "token0"))
Expand Down Expand Up @@ -1247,7 +1256,8 @@ func (suite *HooksTestSuite) TestBadCrosschainSwapsNextMemoMessages() {
_, crosschainAddr := suite.SetupCrosschainSwaps(ChainA)
// Send some token0 tokens to B so that there are ibc tokens to send to A and crosschain-swap
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(20000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when swapped via IBC
denomTrace0 := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", "channel-0", "token0"))
Expand Down Expand Up @@ -1396,9 +1406,11 @@ func (suite *HooksTestSuite) TestCrosschainForwardWithMemo() {
swaprouterAddrB, crosschainAddrB := suite.SetupCrosschainSwaps(ChainB)
// Send some token0 and token1 tokens to B so that there are ibc token0 to send to A and crosschain-swap, and token1 to create the pool
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(500000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)
transferMsg1 := NewMsgTransfer(sdk.NewCoin("token1", sdk.NewInt(500000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg1, AtoB)
_, _, _, err = suite.FullSend(transferMsg1, AtoB)
suite.Require().NoError(err)
denom := suite.GetIBCDenom(ChainA, ChainB, "token1")
poolId := suite.CreateIBCNativePoolOnChain(ChainB, denom)
suite.SetupIBCRouteOnChain(swaprouterAddrB, suite.chainB.SenderAccount.GetAddress(), poolId, ChainB, denom)
Expand Down Expand Up @@ -1472,7 +1484,8 @@ func (suite *HooksTestSuite) TestCrosschainSwapsViaIBCMultiHop() {
suite.pathAC.EndpointA.ChannelID,
"",
)
suite.FullSend(transferMsg, AtoC)
_, _, _, err := suite.FullSend(transferMsg, AtoC)
suite.Require().NoError(err)

token0AC := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", suite.pathAC.EndpointB.ChannelID, "token0")).IBCDenom()
transferMsg = NewMsgTransfer(
Expand All @@ -1482,7 +1495,8 @@ func (suite *HooksTestSuite) TestCrosschainSwapsViaIBCMultiHop() {
suite.pathBC.EndpointB.ChannelID,
"",
)
suite.FullSend(transferMsg, CtoB)
_, _, _, err = suite.FullSend(transferMsg, CtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when sent via IBC
ACBPath := fmt.Sprintf("transfer/%s/transfer/%s", suite.pathAC.EndpointB.ChannelID, suite.pathBC.EndpointA.ChannelID)
Expand Down Expand Up @@ -1564,7 +1578,6 @@ func (suite *HooksTestSuite) SimpleNativeTransfer(token string, amount sdk.Int,
prevPrefix = strings.TrimLeft(prevPrefix, "/")
denom = transfertypes.DenomTrace{Path: prevPrefix, BaseDenom: token}.IBCDenom()
prev = toChain

}
return denom
}
Expand Down Expand Up @@ -1795,7 +1808,8 @@ func (suite *HooksTestSuite) ExecuteOutpostSwap(initializer, receiverAddr sdk.Ac

// Send some token0 tokens to B so that there are ibc tokens to send to A and crosschain-swap
transferMsg := NewMsgTransfer(sdk.NewCoin("token0", sdk.NewInt(2000)), suite.chainA.SenderAccount.GetAddress().String(), initializer.String(), "channel-0", "")
suite.FullSend(transferMsg, AtoB)
_, _, _, err := suite.FullSend(transferMsg, AtoB)
suite.Require().NoError(err)

// Calculate the names of the tokens when swapped via IBC
denomTrace0 := transfertypes.ParseDenomTrace(transfertypes.GetPrefixedDenom("transfer", "channel-0", "token0"))
Expand All @@ -1817,7 +1831,7 @@ func (suite *HooksTestSuite) ExecuteOutpostSwap(initializer, receiverAddr sdk.Ac
// Call the outpost
contractKeeper := wasmkeeper.NewDefaultPermissionKeeper(osmosisAppB.WasmKeeper)
ctxB := suite.chainB.GetContext()
_, err := contractKeeper.Execute(ctxB, outpostAddr, initializer, []byte(swapMsg), sdk.NewCoins(sdk.NewCoin(token0IBC, sdk.NewInt(1000))))
_, err = contractKeeper.Execute(ctxB, outpostAddr, initializer, []byte(swapMsg), sdk.NewCoins(sdk.NewCoin(token0IBC, sdk.NewInt(1000))))
suite.Require().NoError(err)
suite.chainB.NextBlock()
err = suite.pathAB.EndpointA.UpdateClient()
Expand Down
1 change: 1 addition & 0 deletions tests/simulator/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestFullAppSimulation(t *testing.T) {
}

func fullAppSimulation(tb testing.TB, is_testing bool) {
tb.Helper()
// TODO: Get SDK simulator fixed to have min fees possible
txfeetypes.ConsensusMinFee = sdk.ZeroDec()
config, db, logger, cleanup, err := osmosim.SetupSimulation("goleveldb-app-sim", "Simulation")
Expand Down
Loading