Skip to content

Commit

Permalink
use sdk's logging and db
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Nov 14, 2023
1 parent 6cd13d6 commit 1696d17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions store/iavl/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package iavl
import (
"testing"

dbm "github.com/cometbft/cometbft-db"
"cosmossdk.io/log"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/iavl"
"github.com/stretchr/testify/require"
)

func TestImmutableTreePanics(t *testing.T) {
t.Parallel()
immTree := iavl.NewImmutableTree(dbm.NewMemDB(), 100, false)
immTree := iavl.NewImmutableTree(dbm.NewMemDB(), 100, false, log.NewNopLogger())
it := &immutableTree{immTree}
require.Panics(t, func() { it.Set([]byte{}, []byte{}) })
require.Panics(t, func() { it.Remove([]byte{}) })
Expand Down

0 comments on commit 1696d17

Please sign in to comment.