Skip to content

Commit 8b79c41

Browse files
karlbzfy0701
authored andcommitted
beacon/blsync: better error information in test (ethereum#30336)
this change reports the error instead of ignoring it
1 parent 2299270 commit 8b79c41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

beacon/blsync/block_sync_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ func TestBlockSync(t *testing.T) {
7070
t.Helper()
7171
var expNumber, headNumber uint64
7272
if expHead != nil {
73-
p, _ := expHead.ExecutionPayload()
73+
p, err := expHead.ExecutionPayload()
74+
if err != nil {
75+
t.Fatalf("expHead.ExecutionPayload() failed: %v", err)
76+
}
7477
expNumber = p.NumberU64()
7578
}
7679
select {

0 commit comments

Comments
 (0)