From f804377579d390f38a3322d99517ef60f906db37 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 26 Feb 2025 12:41:57 +0100 Subject: [PATCH] cmd/workload: fix lint issues --- cmd/workload/historytest.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/workload/historytest.go b/cmd/workload/historytest.go index a124363e97..15dd841c87 100644 --- a/cmd/workload/historytest.go +++ b/cmd/workload/historytest.go @@ -112,7 +112,8 @@ func (s *historyTestSuite) testGetBlockByHash(t *utesting.T) { t.Fatalf("block %d (hash %v): error %v", num, bhash, err) } if b == nil { - t.Fatalf("block %d (hash %v): not found", num, bhash) + t.Errorf("block %d (hash %v): not found", num, bhash) + continue } if b.Hash != bhash || uint64(b.Number) != num { t.Errorf("block %d (hash %v): invalid number/hash", num, bhash) @@ -130,7 +131,8 @@ func (s *historyTestSuite) testGetBlockByNumber(t *utesting.T) { t.Fatalf("block %d (hash %v): error %v", num, bhash, err) } if b == nil { - t.Fatalf("block %d (hash %v): not found", num, bhash) + t.Errorf("block %d (hash %v): not found", num, bhash) + continue } if b.Hash != bhash || uint64(b.Number) != num { t.Errorf("block %d (hash %v): invalid number/hash", num, bhash) @@ -221,6 +223,7 @@ func (s *historyTestSuite) testGetTransactionByBlockHashAndIndex(t *utesting.T) } if tx == nil { t.Errorf("block %d (hash %v): txIndex %d not found", num, bhash, txIndex) + continue } if tx.Hash != *expectedHash || uint64(tx.TransactionIndex) != uint64(txIndex) { t.Errorf("block %d (hash %v): txIndex %d has wrong txHash/Index", num, bhash, txIndex) @@ -245,6 +248,7 @@ func (s *historyTestSuite) testGetTransactionByBlockNumberAndIndex(t *utesting.T } if tx == nil { t.Errorf("block %d (hash %v): txIndex %d not found", num, bhash, txIndex) + continue } if tx.Hash != *expectedHash || uint64(tx.TransactionIndex) != uint64(txIndex) { t.Errorf("block %d (hash %v): txIndex %d has wrong txHash/Index", num, bhash, txIndex)