Skip to content

Commit

Permalink
simulators/ethereum/engine: Expect error code for invalid payload att…
Browse files Browse the repository at this point in the history
…ributes tests (ethereum#996)

simulators/ethereum/engine: Expect error code for invalid payload attributes tests.
  • Loading branch information
spencer-tb authored and Eikix committed Mar 1, 2024
1 parent bad4bae commit 7261ccb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/ethereum/hive/simulators/ethereum/engine/clmock"
"github.com/ethereum/hive/simulators/ethereum/engine/config"
"github.com/ethereum/hive/simulators/ethereum/engine/globals"
"github.com/ethereum/hive/simulators/ethereum/engine/helper"
"github.com/ethereum/hive/simulators/ethereum/engine/test"
)
Expand Down Expand Up @@ -72,7 +73,7 @@ func (tc InvalidPayloadAttributesTest) Execute(t *test.Env) {
r.ExpectPayloadID(nil)
} else {
r := t.TestEngine.TestEngineForkchoiceUpdated(&fcu, attr, t.CLMock.LatestPayloadBuilt.Timestamp)
r.ExpectError()
r.ExpectErrorCode(*globals.INVALID_PAYLOAD_ATTRIBUTES)

// Check that the forkchoice was applied, regardless of the error
s := t.TestEngine.TestHeaderByNumber(Head)
Expand Down

0 comments on commit 7261ccb

Please sign in to comment.