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

this change reports the error instead of ignoring it
This commit is contained in:
Karl Bartel 2024-08-23 12:29:02 +02:00 committed by GitHub
parent 020f026616
commit c12a1c9bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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