Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

fix(tests): Delete inconsistent test #1481

Merged
merged 3 commits into from
Nov 23, 2022
Merged
Changes from all commits
Commits
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
28 changes: 8 additions & 20 deletions x/evm/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,18 +887,6 @@ func (suite *KeeperTestSuite) TestTraceTx() {
},
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",
malleate: func() {
Expand Down Expand Up @@ -984,8 +972,8 @@ func (suite *KeeperTestSuite) TestTraceTx() {
} else {
suite.Require().Error(err)
}
// Reset for next test case
chainID = nil
// Reset for next test case
chainID = nil
})
}

Expand Down Expand Up @@ -1140,9 +1128,9 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
TraceConfig: traceConfig,
}

if chainID != nil {
traceReq.ChainId = chainID.Int64()
}
if chainID != nil {
traceReq.ChainId = chainID.Int64()
}

res, err := suite.queryClient.TraceBlock(sdk.WrapSDKContext(suite.ctx), &traceReq)

Expand All @@ -1157,8 +1145,8 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
} else {
suite.Require().Error(err)
}
// Reset for next case
chainID = nil
// Reset for next case
chainID = nil
})
}

Expand All @@ -1175,7 +1163,7 @@ func (suite *KeeperTestSuite) TestNonceInQuery() {

// do an EthCall/EstimateGas with nonce 0
ctorArgs, err := types.ERC20Contract.ABI.Pack("", address, supply)
suite.Require().NoError(err)
suite.Require().NoError(err)

data := append(types.ERC20Contract.Bin, ctorArgs...)
args, err := json.Marshal(&types.TransactionArgs{
Expand Down