Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcauchi committed Nov 11, 2024
1 parent 0bc53b6 commit fce87d3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/config/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,13 @@ func (c *TestConfig) ReadFromEnvVar() error {
c.Network.RpcHttpUrls = rpcHttpUrls
}

if !c.Network.ForceHttp || !c.Seth.ForceHTTP {
rpcWsUrls := ReadEnvVarGroupedMap(E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
if len(rpcWsUrls) > 0 {
if c.Network == nil {
c.Network = &NetworkConfig{}
}
logger.Info().Msgf("Using %s and/or %s env vars to override Network.RpcWsUrls", E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
c.Network.RpcWsUrls = rpcWsUrls
rpcWsUrls := ReadEnvVarGroupedMap(E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
if len(rpcWsUrls) > 0 {
if c.Network == nil {
c.Network = &NetworkConfig{}
}
logger.Info().Msgf("Using %s and/or %s env vars to override Network.RpcWsUrls", E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
c.Network.RpcWsUrls = rpcWsUrls
}

chainlinkImage := MustReadEnvVar_String(E2E_TEST_CHAINLINK_IMAGE_ENV)
Expand Down

0 comments on commit fce87d3

Please sign in to comment.