From e77644283f1ae3b8a2945c351a8b2ca364cee7c9 Mon Sep 17 00:00:00 2001 From: Spencer Taylor-Brown Date: Sat, 10 Feb 2024 06:15:51 +0000 Subject: [PATCH] simulators/ethereum/engine: Expect error code for invalid payload attributes tests. --- simulators/ethereum/engine/suites/engine/payload_attributes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simulators/ethereum/engine/suites/engine/payload_attributes.go b/simulators/ethereum/engine/suites/engine/payload_attributes.go index 91b9cadae4..540159b2a1 100644 --- a/simulators/ethereum/engine/suites/engine/payload_attributes.go +++ b/simulators/ethereum/engine/suites/engine/payload_attributes.go @@ -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" ) @@ -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)