From ee43dad2669c8aecb1f91c25f19bd8dd6326006c Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Thu, 18 Mar 2021 12:32:18 +0100 Subject: [PATCH] fix ethash test --- consensus/ethash/ethash_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/consensus/ethash/ethash_test.go b/consensus/ethash/ethash_test.go index b0a5f2599..d8f2e4552 100644 --- a/consensus/ethash/ethash_test.go +++ b/consensus/ethash/ethash_test.go @@ -88,9 +88,8 @@ func verifyTest(wg *sync.WaitGroup, e *Ethash, workerIndex, epochs int) { block = 0 } header := &types.Header{Number: big.NewInt(block), Difficulty: big.NewInt(100)} - if err := e.verifySeal(nil, header, false); err != nil { - panic(err) - } + // we expect an error there sometimes + e.verifySeal(nil, header, false) //nolint:errcheck } }