From 3ebee39a9f4522f3be391680d796fd87a5da84d7 Mon Sep 17 00:00:00 2001 From: zsystm Date: Thu, 19 Sep 2024 14:32:58 +0900 Subject: [PATCH] fix ci --- client/x/evmengine/keeper/keeper_internal_test.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/x/evmengine/keeper/keeper_internal_test.go b/client/x/evmengine/keeper/keeper_internal_test.go index 63f0d4de..49df6cf3 100644 --- a/client/x/evmengine/keeper/keeper_internal_test.go +++ b/client/x/evmengine/keeper/keeper_internal_test.go @@ -125,12 +125,12 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { expectedErr: "invalid proposed payload number", }, { - name: "fail: payload payload parent hash is not equal to head hash", + name: "fail: payload parent hash is not equal to head hash", msg: func(c context.Context) *types.MsgExecutionPayload { execHead, err := keeper.getExecutionHead(c) require.NoError(t, err) - payload, err := ethclient.MakePayload(fuzzer, execHead.BlockHeight+1, uint64(now.Unix()), common.Hash{}, common.Address{}, common.Hash{}, &common.Hash{}) + payload, err := ethclient.MakePayload(fuzzer, execHead.GetBlockHeight()+1, uint64(now.Unix()), common.Hash{}, common.Address{}, common.Hash{}, &common.Hash{}) require.NoError(t, err) marshaled, err := json.Marshal(payload) @@ -163,7 +163,7 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { execHead, err := keeper.getExecutionHead(c) require.NoError(t, err) - payload, err := ethclient.MakePayload(fuzzer, execHead.BlockHeight+1, uint64(now.Unix()), execHead.Hash(), common.Address{}, common.Hash{}, &common.Hash{}) + payload, err := ethclient.MakePayload(fuzzer, execHead.GetBlockHeight()+1, uint64(now.Unix()), execHead.Hash(), common.Address{}, common.Hash{}, &common.Hash{}) require.NoError(t, err) marshaled, err := json.Marshal(payload) @@ -179,7 +179,7 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { execHead, err := keeper.getExecutionHead(c) require.NoError(t, err) - payload, err := ethclient.MakePayload(fuzzer, execHead.BlockHeight+1, uint64(now.Unix()), execHead.Hash(), common.Address{}, execHead.Hash(), &common.Hash{}) + payload, err := ethclient.MakePayload(fuzzer, execHead.GetBlockHeight()+1, uint64(now.Unix()), execHead.Hash(), common.Address{}, execHead.Hash(), &common.Hash{}) require.NoError(t, err) marshaled, err := json.Marshal(payload) @@ -195,7 +195,7 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { require.NoError(t, err) // update execution head with current block time err = keeper.updateExecutionHead(c, engine.ExecutableData{ - Number: execHead.BlockHeight, + Number: execHead.GetBlockHeight(), BlockHash: common.BytesToHash(execHead.BlockHash), Timestamp: uint64(now.Unix()), }) @@ -204,6 +204,7 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { // set block time to be less than execution block time sdkCtx := sdk.UnwrapSDKContext(c) sdkCtx = sdkCtx.WithBlockTime(now.Add(-24 * time.Hour)) + return sdkCtx }, msg: func(c context.Context) *types.MsgExecutionPayload { @@ -239,6 +240,7 @@ func TestKeeper_parseAndVerifyProposedPayload(t *testing.T) { } func TestKeeper_setOptimisticPayload(t *testing.T) { + t.Parallel() _, _, keeper := createKeeper(t, args{ height: 0, current: 0,