From 0357edbe951da380ff4c5522d0741bf90ad2ce6b Mon Sep 17 00:00:00 2001 From: Damjan Smickovski Date: Tue, 17 Jan 2023 15:30:42 +0100 Subject: [PATCH] Minor changes --- .github/workflows/soak.yml | 2 +- integration-tests/common/common.go | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/soak.yml b/.github/workflows/soak.yml index 14ee6a1f9..6ab94c607 100644 --- a/.github/workflows/soak.yml +++ b/.github/workflows/soak.yml @@ -15,7 +15,7 @@ on: type: string node_count: required: true - default: 5h + default: 5 type: string jobs: get_projectserum_version: diff --git a/integration-tests/common/common.go b/integration-tests/common/common.go index 3ed985236..cf695048a 100644 --- a/integration-tests/common/common.go +++ b/integration-tests/common/common.go @@ -42,6 +42,7 @@ const ( ChainID = "localnet" DefaultNodeCount = 5 DefaultTTL = "3h" + SolanaURL = "http://sol:8899" ) type Common struct { @@ -141,7 +142,7 @@ func (c *Common) CreateSolanaChainAndNode(nodes []*client.Chainlink) error { _, _, err = n.CreateSolanaNode(&client.SolanaNodeAttributes{ Name: ChainName, SolanaChainID: ChainID, - SolanaURL: "http://sol:8899", + SolanaURL: SolanaURL, }) if err != nil { return err @@ -331,7 +332,7 @@ func pluginConfigToTomlFormat(pluginConfig string) job.JSONConfig { func (c *Common) CreateJobsForContract(contractNodeInfo *ContractNodeInfo) error { relayConfig := job.JSONConfig{ - "nodeEndpointHTTP": "\"http://sol:8899\"", + "nodeEndpointHTTP": fmt.Sprintf("\"%s\"", SolanaURL), "ocr2ProgramID": fmt.Sprintf("\"%s\"", contractNodeInfo.OCR2.ProgramAddress()), "transmissionsID": fmt.Sprintf("\"%s\"", contractNodeInfo.Store.TransmissionsAddress()), "storeProgramID": fmt.Sprintf("\"%s\"", contractNodeInfo.Store.ProgramAddress()), @@ -400,12 +401,12 @@ func BuildNodeContractPairID(node *client.Chainlink, ocr2Addr string) (string, e func (c *Common) Default() *Common { c.K8Config = &environment.Config{InsideK8s: c.InsideK8, TTL: c.TTL} testNetwork := networks.SelectedNetwork - baseTOML := `[[Solana]] + baseTOML := fmt.Sprintf(`[[Solana]] Enabled = true -ChainID = 'localnet' +ChainID = '%s' [[Solana.Nodes]] Name = 'primary' -URL = 'http://sol:8899' +URL = '%s' [OCR2] Enabled = true @@ -416,7 +417,7 @@ Enabled = true DeltaDial = '5s' DeltaReconcile = '5s' ListenAddresses = ['0.0.0.0:6690'] -` +`, ChainID, SolanaURL) c.Env = environment.New(c.K8Config). AddHelm(mockservercfg.New(nil)). AddHelm(mockserver.New(nil)).