Skip to content

Commit

Permalink
Update build:integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Nov 6, 2024
1 parent 27ef30b commit 6972344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/solana/txm/txm_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (

relayconfig "github.com/smartcontractkit/chainlink-common/pkg/config"
"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"
)
Expand Down Expand Up @@ -113,7 +114,7 @@ func TestTxm(t *testing.T) {
mkey.On("Sign", mock.Anything, mock.Anything, mock.Anything).Return([]byte{}, nil)

loader := utils.NewLazyLoad(func() (client.ReaderWriter, error) { return mc, nil })
txm := NewTxm(id, loader, nil, cfg, mkey, lggr)
txm := NewTxm(id, loader, nil, cfg, mkey, lggr, sqlutilmocks.NewDataSource(t))
require.NoError(t, txm.Start(ctx))

// tracking prom metrics
Expand Down
4 changes: 3 additions & 1 deletion pkg/solana/txm/txm_load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ import (
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"

solanaClient "github.com/smartcontractkit/chainlink-solana/pkg/solana/client"
"github.com/smartcontractkit/chainlink-solana/pkg/solana/config"
"github.com/smartcontractkit/chainlink-solana/pkg/solana/txm"
keyMocks "github.com/smartcontractkit/chainlink-solana/pkg/solana/txm/mocks"

relayconfig "github.com/smartcontractkit/chainlink-common/pkg/config"
"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"
)
Expand Down Expand Up @@ -72,7 +74,7 @@ func TestTxm_Integration(t *testing.T) {
client, err := solanaClient.NewClient(url, cfg, 2*time.Second, lggr)
require.NoError(t, err)
loader := utils.NewLazyLoad(func() (solanaClient.ReaderWriter, error) { return client, nil })
txm := txm.NewTxm("localnet", loader, nil, cfg, mkey, lggr)
txm := txm.NewTxm("localnet", loader, nil, cfg, mkey, lggr, sqlutilmocks.NewDataSource(t))

// track initial balance
initBal, err := client.Balance(ctx, pubKey)
Expand Down

0 comments on commit 6972344

Please sign in to comment.