From 666a77fc85460e3edac64af5b7d1f220137fb5ce Mon Sep 17 00:00:00 2001 From: Damjan Smickovski Date: Mon, 10 Jun 2024 12:13:18 +0200 Subject: [PATCH] Fixing url issue --- integration-tests/common/test_common.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/integration-tests/common/test_common.go b/integration-tests/common/test_common.go index c19ec2f5..5841308a 100644 --- a/integration-tests/common/test_common.go +++ b/integration-tests/common/test_common.go @@ -138,12 +138,13 @@ func (m *OCRv2TestState) DeployCluster() { return } - // Setting RPC details m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][0] - fmt.Println(m.Common.RPCDetails.RPCL2External) - fmt.Println(m.Common.RPCDetails.RPCL2External) - fmt.Println(m.Common.RPCDetails.RPCL2External) - fmt.Println(m.Common.RPCDetails.RPCL2External) + + if m.Common.Env.WillUseRemoteRunner() { + m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][1] + } + + // Setting RPC details if *m.Common.TestConfig.Common.Network == "testnet" { m.Common.RPCDetails.RPCL2External = *m.Common.TestConfig.Common.L2RPCUrl @@ -218,13 +219,6 @@ func (m *OCRv2TestState) DeployCluster() { // If we are using devnet fetch the default keys if *m.Common.TestConfig.Common.Network == "localnet" { // fetch predeployed account 0 to use as funder - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) - fmt.Println(m.Common.Env.URLs["starknet-dev"]) m.Clients.DevnetClient = starknetdevnet.NewDevNet(m.Common.RPCDetails.RPCL2External) accounts, err := m.Clients.DevnetClient.Accounts() require.NoError(m.TestConfig.T, err)