From 6ac627914b8eae893b5e2befe225ae07d1d5e45a Mon Sep 17 00:00:00 2001 From: Quentin Mc Gaw Date: Wed, 12 Feb 2025 15:01:43 +0100 Subject: [PATCH] Minor changes (formatting, no t.Parallel()) --- core/types/block_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/types/block_test.go b/core/types/block_test.go index 32baa3529f..d04865f683 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -327,10 +327,9 @@ func TestCopyHeader(t *testing.T) { t.Parallel() t.Run("empty_header", func(t *testing.T) { - t.Parallel() + empty := &Header{} - empty := Header{} - cpy := CopyHeader(&empty) + cpy := CopyHeader(empty) want := &Header{ Difficulty: new(big.Int), @@ -340,8 +339,6 @@ func TestCopyHeader(t *testing.T) { }) t.Run("filled_header", func(t *testing.T) { - t.Parallel() - h := &Header{ ParentHash: common.Hash{1}, UncleHash: common.Hash{2}, @@ -393,6 +390,7 @@ func TestCopyHeader(t *testing.T) { ParentBeaconRoot: &common.Hash{20}, RequestsHash: &common.Hash{21}, } + assert.Equal(t, want, cpy) // Mutate each non-value field to ensure they are not shared