From d05d49c5ed0c78c40baf2dbd96b773f06fbc5ec5 Mon Sep 17 00:00:00 2001 From: dreamer Date: Thu, 18 Apr 2024 15:44:50 +0800 Subject: [PATCH] remove unfinished test code --- modules/token/client/cli/cli_test.go | 76 ++++++++++++++-------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/modules/token/client/cli/cli_test.go b/modules/token/client/cli/cli_test.go index 1e3cb389..250ba628 100644 --- a/modules/token/client/cli/cli_test.go +++ b/modules/token/client/cli/cli_test.go @@ -242,50 +242,50 @@ func (s *IntegrationTestSuite) TestToken() { // --------------------------------------------------------------------------- //------test GetCmdSwapToErc20()------------- - args = []string{ - fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()), - - fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), - fmt.Sprintf( - "--%s=%s", - flags.FlagFees, - sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(), - ), - } - - txResult = tokentestutil.SwapToERC20Exec( - s.T(), - s.network, - clientCtx, - from.String(), - sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(), - args...) + // args = []string{ + // fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()), + + // fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), + // fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), + // fmt.Sprintf( + // "--%s=%s", + // flags.FlagFees, + // sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(), + // ), + // } + + // txResult = tokentestutil.SwapToERC20Exec( + // s.T(), + // s.network, + // clientCtx, + // from.String(), + // sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(), + // args...) // TODO assert // s.Require().Equal(expectedCode, txResult.Code) // --------------------------------------------------------------------------- //------test GetCmdSwapFromErc20()------------- - args = []string{ - fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()), - - fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), - fmt.Sprintf( - "--%s=%s", - flags.FlagFees, - sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(), - ), - } - - txResult = tokentestutil.SwapFromERC20Exec( - s.T(), - s.network, - clientCtx, - from.String(), - sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(), - args...) + // args = []string{ + // fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()), + + // fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), + // fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), + // fmt.Sprintf( + // "--%s=%s", + // flags.FlagFees, + // sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(), + // ), + // } + + // txResult = tokentestutil.SwapFromERC20Exec( + // s.T(), + // s.network, + // clientCtx, + // from.String(), + // sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(), + // args...) // TODO assert // s.Require().Equal(expectedCode, txResult.Code)