Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jan 17, 2023
1 parent fd72a4c commit 0357edb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/soak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
type: string
node_count:
required: true
default: 5h
default: 5
type: string
jobs:
get_projectserum_version:
Expand Down
13 changes: 7 additions & 6 deletions integration-tests/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
ChainID = "localnet"
DefaultNodeCount = 5
DefaultTTL = "3h"
SolanaURL = "http://sol:8899"
)

type Common struct {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()),
Expand Down Expand Up @@ -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
Expand All @@ -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)).
Expand Down

0 comments on commit 0357edb

Please sign in to comment.