From d71e7f12039975b4b3d8fa19b721018e899c5aea Mon Sep 17 00:00:00 2001 From: "yzb@example.cn" Date: Thu, 29 Feb 2024 15:58:48 +0800 Subject: [PATCH] test:delete-no-use-param --- eth/api_debug_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index 4c822c0012..671e935beb 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -84,11 +84,9 @@ func TestAccountRange(t *testing.T) { sdb, _ = state.New(root, statedb, nil) trie, err := statedb.OpenTrie(root) - accountRangeTest(t, sdb, common.Hash{}, AccountRangeMaxResults/2, AccountRangeMaxResults/2) if err != nil { t.Fatal(err) } - accountRangeTest(t, &trie, sdb, common.Hash{}, AccountRangeMaxResults/2, AccountRangeMaxResults/2) // test pagination firstResult := accountRangeTest(t, &trie, sdb, common.Hash{}, AccountRangeMaxResults, AccountRangeMaxResults) @@ -110,7 +108,7 @@ func TestAccountRange(t *testing.T) { // set and get an even split between the first and second sets. slices.SortFunc(hList, common.Hash.Cmp) middleH := hList[AccountRangeMaxResults/2] - middleResult := accountRangeTest(t, sdb, middleH, AccountRangeMaxResults, AccountRangeMaxResults) + middleResult := accountRangeTest(t, &trie, sdb, middleH, AccountRangeMaxResults, AccountRangeMaxResults) missing, infirst, insecond := 0, 0, 0 for h := range middleResult.Accounts { if _, ok := firstResult.Accounts[h]; ok {