From 327cf03a7a565ef2b6961dd545c4fb272a2a8824 Mon Sep 17 00:00:00 2001 From: james-prysm Date: Thu, 25 Jul 2024 14:07:01 -0500 Subject: [PATCH] fixing test --- beacon-chain/sync/pending_blocks_queue_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/sync/pending_blocks_queue_test.go b/beacon-chain/sync/pending_blocks_queue_test.go index e986d20dda86..3e367b214691 100644 --- a/beacon-chain/sync/pending_blocks_queue_test.go +++ b/beacon-chain/sync/pending_blocks_queue_test.go @@ -684,9 +684,9 @@ func TestService_AddPendingBlockToQueueOverMax(t *testing.T) { } b := util.NewBeaconBlock() - b1 := ethpb.CopySignedBeaconBlock(b) + b1 := b.Copy() b1.Block.StateRoot = []byte{'a'} - b2 := ethpb.CopySignedBeaconBlock(b) + b2 := b.Copy() b2.Block.StateRoot = []byte{'b'} wsb, err := blocks.NewSignedBeaconBlock(b) require.NoError(t, err) @@ -698,7 +698,7 @@ func TestService_AddPendingBlockToQueueOverMax(t *testing.T) { require.NoError(t, err) require.NoError(t, r.insertBlockToPendingQueue(0, wsb, [32]byte{2})) - b3 := ethpb.CopySignedBeaconBlock(b) + b3 := b.Copy() b3.Block.StateRoot = []byte{'c'} wsb, err = blocks.NewSignedBeaconBlock(b2) require.NoError(t, err)