mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue