From 0792f78840e27a458535bf2d5e386485c0e01f9f Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Sat, 4 Jan 2025 16:04:58 +0300 Subject: [PATCH] Update compare_test.go Signed-off-by: GarmashAlex --- testing/quick/compare_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testing/quick/compare_test.go b/testing/quick/compare_test.go index 4b9aba7896..8c404934f2 100644 --- a/testing/quick/compare_test.go +++ b/testing/quick/compare_test.go @@ -41,6 +41,8 @@ var hFn = ztree.GetHashFn() var spec = zspec.Mainnet func TestExecutionPayloadHashTreeRootZrnt(t *testing.T) { + t.Parallel() + f := func(payload *types.ExecutionPayload, logsBloom [256]byte) bool { // skip these cases lest we trigger a // nil-pointer dereference in fastssz @@ -54,6 +56,12 @@ func TestExecutionPayloadHashTreeRootZrnt(t *testing.T) { return true } + defer func() { + if r := recover(); r != nil { + t.Errorf("Test panicked: %v", r) + } + }() + payload.LogsBloom = logsBloom payload.BaseFeePerGas = math.NewU256(123) typeRoot := payload.HashTreeRoot()