diff --git a/turbo/stages/mock_sentry.go b/turbo/stages/mock_sentry.go index d548e8505..4a51888b9 100644 --- a/turbo/stages/mock_sentry.go +++ b/turbo/stages/mock_sentry.go @@ -218,7 +218,12 @@ func MockWithEverything(t *testing.T, gspec *core.Genesis, key *ecdsa.PrivateKey cfg.DeprecatedTxPool.Disable = !withTxPool cfg.DeprecatedTxPool.StartOnInit = true - db := memdb.New() + var db kv.RwDB + if t != nil { + db = memdb.NewTestDB(t) + } else { + db = memdb.New() + } ctx, ctxCancel := context.WithCancel(context.Background()) _ = db.Update(ctx, func(tx kv.RwTx) error { _, _ = kvcfg.HistoryV3.WriteOnce(tx, cfg.HistoryV3)