From 116e7668865a64a9870c29cd649c03cb3aaaba3c Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 9 Jan 2023 15:56:43 +0000 Subject: [PATCH] lib/trie: do not create table for TestTrieDiff --- lib/trie/trie_endtoend_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/trie/trie_endtoend_test.go b/lib/trie/trie_endtoend_test.go index 0315fc8234..e3550d5ee6 100644 --- a/lib/trie/trie_endtoend_test.go +++ b/lib/trie/trie_endtoend_test.go @@ -11,7 +11,6 @@ import ( "sync" "testing" - "github.com/ChainSafe/chaindb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -267,14 +266,12 @@ func TestDeleteOddKeyLengths(t *testing.T) { } func TestTrieDiff(t *testing.T) { - db := newTestDB(t) + storageDB := newTestDB(t) t.Cleanup(func() { - err := db.Close() + err := storageDB.Close() require.NoError(t, err) }) - storageDB := chaindb.NewTable(db, "storage") - trie := NewEmptyTrie() var testKey = []byte("testKey")