Skip to content

Commit

Permalink
lib/trie: do not create table for TestTrieDiff
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 9, 2023
1 parent 6a92ccf commit 2376b3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/trie/trie_endtoend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"sync"
"testing"

"github.com/ChainSafe/chaindb"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2376b3a

Please sign in to comment.