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

Commit 8256649

Browse files
authored
fix(tests): Delete inconsistent test (#1481)
* Delete inconsistent test * delete test
1 parent 645e49b commit 8256649

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

x/evm/keeper/grpc_query_test.go

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -887,18 +887,6 @@ func (suite *KeeperTestSuite) TestTraceTx() {
887887
},
888888
expPass: false,
889889
},
890-
{
891-
msg: "trace config - Execution Timeout",
892-
malleate: func() {
893-
traceConfig = &types.TraceConfig{
894-
DisableStack: true,
895-
DisableStorage: true,
896-
EnableMemory: false,
897-
Timeout: "0s",
898-
}
899-
},
900-
expPass: false,
901-
},
902890
{
903891
msg: "default tracer with contract creation tx as predecessor but 'create' param disabled",
904892
malleate: func() {
@@ -984,8 +972,8 @@ func (suite *KeeperTestSuite) TestTraceTx() {
984972
} else {
985973
suite.Require().Error(err)
986974
}
987-
// Reset for next test case
988-
chainID = nil
975+
// Reset for next test case
976+
chainID = nil
989977
})
990978
}
991979

@@ -1140,9 +1128,9 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
11401128
TraceConfig: traceConfig,
11411129
}
11421130

1143-
if chainID != nil {
1144-
traceReq.ChainId = chainID.Int64()
1145-
}
1131+
if chainID != nil {
1132+
traceReq.ChainId = chainID.Int64()
1133+
}
11461134

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

@@ -1157,8 +1145,8 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
11571145
} else {
11581146
suite.Require().Error(err)
11591147
}
1160-
// Reset for next case
1161-
chainID = nil
1148+
// Reset for next case
1149+
chainID = nil
11621150
})
11631151
}
11641152

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

11761164
// do an EthCall/EstimateGas with nonce 0
11771165
ctorArgs, err := types.ERC20Contract.ABI.Pack("", address, supply)
1178-
suite.Require().NoError(err)
1166+
suite.Require().NoError(err)
11791167

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

0 commit comments

Comments
 (0)