diff --git a/pkg/solana/chain_test.go b/pkg/solana/chain_test.go index 3f1fdaf23..c5ccc7307 100644 --- a/pkg/solana/chain_test.go +++ b/pkg/solana/chain_test.go @@ -1,9 +1,9 @@ package solana import ( - "context" "errors" "fmt" + "github.com/smartcontractkit/chainlink-common/pkg/utils/tests" "io" "net/http" "net/http/httptest" @@ -175,7 +175,7 @@ func TestSolanaChain_VerifiedClient(t *testing.T) { testChain.id = "incorrect" c, err = testChain.verifiedClient(node) assert.NoError(t, err) - _, err = c.ChainID(context.Background()) + _, err = c.ChainID(tests.Context(t)) // expect error from id mismatch (even if using a cached client) when performing RPC calls assert.Error(t, err) assert.Equal(t, fmt.Sprintf("client returned mismatched chain id (expected: %s, got: %s): %s", "incorrect", "devnet", node.URL), err.Error())