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

Commit

Permalink
fix(tests): Delete inconsistent test (#1481)
Browse files Browse the repository at this point in the history
* Delete inconsistent test

* delete test
  • Loading branch information
ramacarlucho authored Nov 23, 2022
1 parent 645e49b commit 8256649
Showing 1 changed file with 8 additions and 20 deletions.
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

0 comments on commit 8256649

Please sign in to comment.