Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Jun 10, 2024
1 parent d8188db commit 008c904
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions integration-tests/testsetups/ocr.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,18 @@ func (o *OCRSoakTest) DeployEnvironment(customChainlinkNetworkTOML string, ocrTe
o.rpcNetwork.URLs = []string{anvilChart.ForwardedWSURL}
}
} else if o.rpcNetwork.Simulated && o.rpcNetwork.Name == blockchain.SimulatedEVMNetwork.Name {
if testEnv.Cfg.InsideK8s {
// Test is running inside K8s
o.rpcNetwork.URLs = blockchain.SimulatedEVMNetwork.URLs
} else {
// Test is running locally, set forwarded URL of Geth blockchain node
wsURLs := o.testEnvironment.URLs[blockchain.SimulatedEVMNetwork.Name+"_internal"]
httpURLs := o.testEnvironment.URLs[blockchain.SimulatedEVMNetwork.Name+"_internal_http"]
require.NotEmpty(o.t, wsURLs, "Forwarded Geth URLs should not be empty")
require.NotEmpty(o.t, httpURLs, "Forwarded Geth URLs should not be empty")
o.rpcNetwork.URLs = wsURLs
o.rpcNetwork.HTTPURLs = httpURLs
}
o.rpcNetwork.URLs = blockchain.SimulatedEVMNetwork.URLs
// if testEnv.Cfg.InsideK8s {
// // Test is running inside K8s
// } else {
// // Test is running locally, set forwarded URL of Geth blockchain node
// wsURLs := o.testEnvironment.URLs[blockchain.SimulatedEVMNetwork.Name+"_internal"]
// httpURLs := o.testEnvironment.URLs[blockchain.SimulatedEVMNetwork.Name+"_internal_http"]
// require.NotEmpty(o.t, wsURLs, "Forwarded Geth URLs should not be empty")
// require.NotEmpty(o.t, httpURLs, "Forwarded Geth URLs should not be empty")
// o.rpcNetwork.URLs = wsURLs
// o.rpcNetwork.HTTPURLs = httpURLs
// }
}
}

Expand Down

0 comments on commit 008c904

Please sign in to comment.