From 97aef918be884862685dbc0bb1997dce1f043bca Mon Sep 17 00:00:00 2001 From: chray-zhang Date: Tue, 3 Dec 2024 19:09:01 -0500 Subject: [PATCH] Linting --- integration-tests/common/gauntlet_plus_plus_common.go | 3 ++- integration-tests/smoke/ocr2_test.go | 4 ++-- integration-tests/soak/ocr2_test.go | 4 ++-- integration-tests/testconfig/testconfig.go | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/integration-tests/common/gauntlet_plus_plus_common.go b/integration-tests/common/gauntlet_plus_plus_common.go index 8d95cdf7..bf002d0d 100644 --- a/integration-tests/common/gauntlet_plus_plus_common.go +++ b/integration-tests/common/gauntlet_plus_plus_common.go @@ -4,8 +4,9 @@ import ( "encoding/json" "errors" "fmt" - "github.com/smartcontractkit/chainlink-starknet/integration-tests/utils" "os" + + "github.com/smartcontractkit/chainlink-starknet/integration-tests/utils" ) func (m *OCRv2TestState) fundNodesWithGPP() ([]string, error) { diff --git a/integration-tests/smoke/ocr2_test.go b/integration-tests/smoke/ocr2_test.go index bde26a76..5f8c6ceb 100644 --- a/integration-tests/smoke/ocr2_test.go +++ b/integration-tests/smoke/ocr2_test.go @@ -75,8 +75,8 @@ func TestOCRBasic(t *testing.T) { state.DeployCluster() // Setting up G++ Client rpcURL := state.Common.RPCDetails.RPCL2Internal - gppUrl := state.TestConfig.TestConfig.Common.GauntletPlusPlusUrl - state.Clients.GauntletPPClient, err = gauntlet.NewStarknetGauntletPlusPlus(gppUrl, rpcURL, state.Account.Account, state.Account.PrivateKey) + gppURL := state.TestConfig.TestConfig.Common.GauntletPlusPlusUrl + state.Clients.GauntletPPClient, err = gauntlet.NewStarknetGauntletPlusPlus(gppURL, rpcURL, state.Account.Account, state.Account.PrivateKey) require.NoError(t, err, "Setting up gauntlet++ should not fail") state.Clients.GauntletClient, err = gauntlet.NewStarknetGauntlet(fmt.Sprintf("%s/", utils.ProjectRoot)) diff --git a/integration-tests/soak/ocr2_test.go b/integration-tests/soak/ocr2_test.go index 2d96b44a..c787bca9 100644 --- a/integration-tests/soak/ocr2_test.go +++ b/integration-tests/soak/ocr2_test.go @@ -80,8 +80,8 @@ func TestOCRBasicSoak(t *testing.T) { // Setting up G++ Client rpcURL := state.Common.RPCDetails.RPCL2Internal - gppUrl := state.TestConfig.TestConfig.Common.GauntletPlusPlusUrl - state.Clients.GauntletPPClient, err = gauntlet.NewStarknetGauntletPlusPlus(gppUrl, rpcURL, state.Account.Account, state.Account.PrivateKey) + gppURL := state.TestConfig.TestConfig.Common.GauntletPlusPlusUrl + state.Clients.GauntletPPClient, err = gauntlet.NewStarknetGauntletPlusPlus(gppURL, rpcURL, state.Account.Account, state.Account.PrivateKey) require.NoError(t, err, "Setting up gauntlet++ should not fail") state.Clients.GauntletClient, err = gauntlet.NewStarknetGauntlet(fmt.Sprintf("%s/", utils.ProjectRoot)) diff --git a/integration-tests/testconfig/testconfig.go b/integration-tests/testconfig/testconfig.go index 5b84c14a..c5c629e4 100644 --- a/integration-tests/testconfig/testconfig.go +++ b/integration-tests/testconfig/testconfig.go @@ -192,7 +192,7 @@ type Common struct { DevnetImage *string `toml:"devnet_image"` GauntletPlusPlusImage *string `toml:"gauntlet_plus_plus_image"` PostgresVersion *string `toml:"postgres_version"` - GauntletPlusPlusUrl string + GauntletPlusPlusUrl string } func (c *Common) Validate() error {