Skip to content

Commit

Permalink
beacon/blsync: better error information in test (#30336)
Browse files Browse the repository at this point in the history
this change reports the error instead of ignoring it
  • Loading branch information
karlb authored Aug 23, 2024
1 parent 020f026 commit c12a1c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beacon/blsync/block_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ func TestBlockSync(t *testing.T) {
t.Helper()
var expNumber, headNumber uint64
if expHead != nil {
p, _ := expHead.ExecutionPayload()
p, err := expHead.ExecutionPayload()
if err != nil {
t.Fatalf("expHead.ExecutionPayload() failed: %v", err)
}
expNumber = p.NumberU64()
}
select {
Expand Down

0 comments on commit c12a1c9

Please sign in to comment.