Skip to content

Commit

Permalink
also modify test error
Browse files Browse the repository at this point in the history
  • Loading branch information
okdas committed Aug 22, 2024
1 parent 39d738d commit 508addc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kvstore/badger/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/stretchr/testify/require"

badgerv4 "github.com/dgraph-io/badger/v4"
"github.com/pokt-network/smt/kvstore/badger"
)

Expand Down Expand Up @@ -280,7 +281,7 @@ func TestBadger_KVStore_Exists(t *testing.T) {

// Key does not exist
exists, err = store.Exists([]byte("oof"))
require.ErrorIs(t, err, badger.ErrBadgerUnableToGetValue)
require.ErrorIs(t, err, badgerv4.ErrKeyNotFound)
require.False(t, exists)

err = store.Stop()
Expand Down

0 comments on commit 508addc

Please sign in to comment.