From 6528e4500bc6428d1f05c31200572a4fc9ed99c3 Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Mon, 24 Jul 2023 14:44:50 +0530 Subject: [PATCH] fix : lint --- core/state/snapshot/generate_test.go | 1 + eth/downloader/downloader_test.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go index edacc9ab40..ac199ff314 100644 --- a/core/state/snapshot/generate_test.go +++ b/core/state/snapshot/generate_test.go @@ -189,6 +189,7 @@ func (t *testHelper) addSnapStorage(accKey string, keys []string, vals []string) } } +// nolint:unparam func (t *testHelper) makeStorageTrie(stateRoot, owner common.Hash, keys []string, vals []string, commit bool) []byte { id := trie.StorageTrieID(stateRoot, owner, common.Hash{}) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 4685e85379..fad44c1312 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -1926,11 +1926,14 @@ func testBeaconSync(t *testing.T, protocol uint, mode SyncMode) { tester.newPeer("peer", protocol, chain.blocks[1:]) // Build the local chain segment if it's required + // nolint:govet if c.local > 0 { + // nolint:govet _, _ = tester.chain.InsertChain(chain.blocks[1 : c.local+1]) } if err := tester.downloader.BeaconSync(mode, chain.blocks[len(chain.blocks)-1].Header(), nil); err != nil { + // nolint:govet t.Fatalf("Failed to beacon sync chain %v %v", c.name, err) } select {