From 25b402ca7f37746b6d87d876caa07e41da39edf6 Mon Sep 17 00:00:00 2001 From: Haaai <55118568+Liuhaai@users.noreply.github.com> Date: Tue, 5 Jul 2022 23:00:50 -0700 Subject: [PATCH] [api] optimize TestChainlinkErrIntegrity (#3486) --- api/grpcserver_integrity_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/grpcserver_integrity_test.go b/api/grpcserver_integrity_test.go index 426011048c..3613bb3e41 100644 --- a/api/grpcserver_integrity_test.go +++ b/api/grpcserver_integrity_test.go @@ -105,7 +105,7 @@ var ( _testTransferInvalid7Pb = _testTransferInvalid7.Proto() // gas is too large - _largeData = make([]byte, 1e7) + _largeData = make([]byte, 1e2) _testTransferInvalid8, _ = action.SignedTransfer(identityset.Address(28).String(), identityset.PrivateKey(28), 3, big.NewInt(10), _largeData, 10000, big.NewInt(testutil.TestGasPriceInt64)) @@ -2574,7 +2574,9 @@ func TestChainlinkErrIntegrity(t *testing.T) { { "ExceedsBlockGasLimit", func() config.Config { - return newConfig() + cfg := newConfig() + cfg.ActPool.MaxGasLimitPerPool = 1e5 + return cfg }, []*iotextypes.Action{_testTransferInvalid8Pb}, gethFatal,