Commit 30e1b1fb authored by Hamdi Allam's avatar Hamdi Allam

fix unit tests

parent 69d1d96f
......@@ -4,6 +4,7 @@ import (
"math/big"
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/metrics"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/mock"
......@@ -17,6 +18,8 @@ import (
)
func Test_L1ETL_Construction(t *testing.T) {
etlMetrics := NewMetrics(metrics.NewRegistry())
type testSuite struct {
db *database.MockDB
client *node.MockEthClient
......@@ -100,7 +103,7 @@ func Test_L1ETL_Construction(t *testing.T) {
logger := log.NewLogger(log.DefaultCLIConfig())
cfg := Config{StartHeight: ts.start}
etl, err := NewL1ETL(cfg, logger, ts.db.DB, ts.client, ts.contracts)
etl, err := NewL1ETL(cfg, logger, ts.db.DB, etlMetrics, ts.client, ts.contracts)
test.assertion(etl, err)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment