beacon/blsync: better error information in test (#30336)

this change reports the error instead of ignoring it
pull/30344/head
Karl Bartel 3 months ago committed by GitHub
parent 020f026616
commit c12a1c9bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      beacon/blsync/block_sync_test.go

@ -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 {

Loading…
Cancel
Save