fix(tests): Delete inconsistent test (#1481)

* Delete inconsistent test

* delete test
This commit is contained in:
Ramiro Carlucho 2022-11-23 15:06:38 +00:00 committed by GitHub
parent 645e49bff5
commit 8256649f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -887,18 +887,6 @@ func (suite *KeeperTestSuite) TestTraceTx() {
}, },
expPass: false, expPass: false,
}, },
{
msg: "trace config - Execution Timeout",
malleate: func() {
traceConfig = &types.TraceConfig{
DisableStack: true,
DisableStorage: true,
EnableMemory: false,
Timeout: "0s",
}
},
expPass: false,
},
{ {
msg: "default tracer with contract creation tx as predecessor but 'create' param disabled", msg: "default tracer with contract creation tx as predecessor but 'create' param disabled",
malleate: func() { malleate: func() {
@ -984,8 +972,8 @@ func (suite *KeeperTestSuite) TestTraceTx() {
} else { } else {
suite.Require().Error(err) suite.Require().Error(err)
} }
// Reset for next test case // Reset for next test case
chainID = nil chainID = nil
}) })
} }
@ -1140,9 +1128,9 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
TraceConfig: traceConfig, TraceConfig: traceConfig,
} }
if chainID != nil { if chainID != nil {
traceReq.ChainId = chainID.Int64() traceReq.ChainId = chainID.Int64()
} }
res, err := suite.queryClient.TraceBlock(sdk.WrapSDKContext(suite.ctx), &traceReq) res, err := suite.queryClient.TraceBlock(sdk.WrapSDKContext(suite.ctx), &traceReq)
@ -1157,8 +1145,8 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
} else { } else {
suite.Require().Error(err) suite.Require().Error(err)
} }
// Reset for next case // Reset for next case
chainID = nil chainID = nil
}) })
} }
@ -1175,7 +1163,7 @@ func (suite *KeeperTestSuite) TestNonceInQuery() {
// do an EthCall/EstimateGas with nonce 0 // do an EthCall/EstimateGas with nonce 0
ctorArgs, err := types.ERC20Contract.ABI.Pack("", address, supply) ctorArgs, err := types.ERC20Contract.ABI.Pack("", address, supply)
suite.Require().NoError(err) suite.Require().NoError(err)
data := append(types.ERC20Contract.Bin, ctorArgs...) data := append(types.ERC20Contract.Bin, ctorArgs...)
args, err := json.Marshal(&types.TransactionArgs{ args, err := json.Marshal(&types.TransactionArgs{