From dcf19c7e9ecfac666af86143c6f1fccf17681e1b Mon Sep 17 00:00:00 2001 From: "yzb@example.cn" Date: Tue, 5 Mar 2024 10:14:09 +0800 Subject: [PATCH] test:delete-no-use-param --- trie/stacktrie_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/stacktrie_test.go b/trie/stacktrie_test.go index 242d5d15a4..3a0e1cb260 100644 --- a/trie/stacktrie_test.go +++ b/trie/stacktrie_test.go @@ -381,7 +381,7 @@ func TestStacktrieNotModifyValues(t *testing.T) { } } -func buildPartialTree(entries []*kv) map[string]common.Hash { +func buildPartialTree(entries []*kv, t *testing.T) map[string]common.Hash { var ( options = NewStackTrieOptions() nodes = make(map[string]common.Hash) @@ -456,7 +456,7 @@ func TestPartialStackTrie(t *testing.T) { tr.Commit() for j := 0; j < 100; j++ { - for path, hash := range buildPartialTree(entries) { + for path, hash := range buildPartialTree(entries, t) { if nodes[path] != hash { t.Errorf("%v, want %x, got %x", []byte(path), nodes[path], hash) }