Skip to content

Commit

Permalink
Fix TestGetReceipts to use mock DB
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed May 9, 2024
1 parent 508d5f5 commit 23c77b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions turbo/jsonrpc/eth_receipts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/gointerfaces/txpool"
"github.com/ledgerwatch/erigon-lib/kv/kvcache"
"github.com/ledgerwatch/erigon-lib/kv/memdb"
"github.com/ledgerwatch/erigon-lib/opstack"
"github.com/ledgerwatch/erigon/cmd/rpcdaemon/rpcdaemontest"
"github.com/ledgerwatch/erigon/common/u256"
Expand All @@ -31,7 +30,7 @@ func TestGetReceipts(t *testing.T) {
ff := rpchelper.New(ctx, nil, nil, mining, func() {}, m.Log)
api := NewEthAPI(NewBaseApi(ff, stateCache, m.BlockReader, agg, false, rpccfg.DefaultEvmCallTimeout, m.Engine, m.Dirs, nil, nil), m.DB, nil, nil, nil, 5000000, 100_000, false, 100_000, 128, log.New())

db := memdb.New("")
db := m.DB
defer db.Close()

tx, err := db.BeginRw(context.Background())
Expand Down

0 comments on commit 23c77b6

Please sign in to comment.