Skip to content

Commit

Permalink
Change core logger to common logger in tests (#12649)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimriou authored Apr 2, 2024
1 parent e9e903b commit c85435e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/chains/evm/client/config_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (

"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/logger"

"github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
"github.com/smartcontractkit/chainlink/v2/core/logger"
)

func TestClientConfigBuilder(t *testing.T) {
Expand Down Expand Up @@ -55,7 +56,7 @@ func TestClientConfigBuilder(t *testing.T) {
require.Equal(t, *finalityTagEnabled, chainCfg.FinalityTagEnabled())

// let combiler tell us, when we do not have sufficient data to create evm client
_ = client.NewEvmClient(nodePool, chainCfg, logger.TestLogger(t), big.NewInt(10), nodes)
_ = client.NewEvmClient(nodePool, chainCfg, logger.Test(t), big.NewInt(10), nodes)
}

func TestNodeConfigs(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions core/chains/evm/client/evm_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/logger"

"github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/logger"
)

func TestNewEvmClient(t *testing.T) {
Expand All @@ -35,6 +36,6 @@ func TestNewEvmClient(t *testing.T) {
pollFailureThreshold, pollInterval, syncThreshold, nodeIsSyncingEnabled, noNewHeadsThreshold, finalityDepth, finalityTagEnabled)
require.NoError(t, err)

client := client.NewEvmClient(nodePool, chainCfg, logger.TestLogger(t), testutils.FixtureChainID, nodes)
client := client.NewEvmClient(nodePool, chainCfg, logger.Test(t), testutils.FixtureChainID, nodes)
require.NotNil(t, client)
}

0 comments on commit c85435e

Please sign in to comment.