mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
test:delete-no-use-param
This commit is contained in:
parent
d71e7f1203
commit
dcf19c7e9e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue