beacon/blsync: better error information in test (#30336)
this change reports the error instead of ignoring it
This commit is contained in:
parent
020f026616
commit
c12a1c9bcf
@ -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…
Reference in New Issue
Block a user