test:delete-no-use-param

This commit is contained in:
yzb@example.cn 2024-03-05 10:14:09 +08:00
parent d71e7f1203
commit dcf19c7e9e

View file

@ -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)
}