From 05c13b95708d0b56ba56f6fa74c85240923d00c6 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:06:59 -0800 Subject: [PATCH] Update signature of txm in tests --- pkg/solana/txm/txm_race_test.go | 3 ++- pkg/solana/txm/txm_unit_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/solana/txm/txm_race_test.go b/pkg/solana/txm/txm_race_test.go index 81f2c15f6..54d6d4de8 100644 --- a/pkg/solana/txm/txm_race_test.go +++ b/pkg/solana/txm/txm_race_test.go @@ -12,6 +12,7 @@ import ( "go.uber.org/zap/zapcore" "github.com/smartcontractkit/chainlink-common/pkg/logger" + sqlutilmocks "github.com/smartcontractkit/chainlink-common/pkg/sqlutil/mocks" "github.com/smartcontractkit/chainlink-common/pkg/utils" "github.com/smartcontractkit/chainlink-common/pkg/utils/tests" @@ -66,7 +67,7 @@ func TestTxm_SendWithRetry_Race(t *testing.T) { loader := utils.NewLazyLoad(func() (solanaClient.ReaderWriter, error) { return client, nil }) - txm := NewTxm("retry_race", loader, nil, cfg, ks, lggr) + txm := NewTxm("retry_race", loader, nil, cfg, ks, lggr, sqlutilmocks.NewDataSource(t)) txm.fee = fee _, _, _, err := txm.sendWithRetry( diff --git a/pkg/solana/txm/txm_unit_test.go b/pkg/solana/txm/txm_unit_test.go index bb2108f4e..ec6d3129f 100644 --- a/pkg/solana/txm/txm_unit_test.go +++ b/pkg/solana/txm/txm_unit_test.go @@ -23,7 +23,7 @@ import ( "github.com/smartcontractkit/chainlink-common/pkg/utils/tests" ) -func TestTxm_EstimateComputeUnitLimit(t *testing.T) { +func TestTxm_EstimateComputeUnitLimit(t testing.T) { t.Parallel() ctx := tests.Context(t)