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 26, 2023
1 parent 3ae2679 commit c15683e
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 c15683e

Please sign in to comment.