Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Oct 4, 2024
1 parent 3b3f99a commit 468bfc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions integration-tests/deployment/devenv/build_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func CreateDockerEnv(t *testing.T) (
// if JD is not provided, we will spin up a new JD
if jdConfig.GRPC == "" || jdConfig.WSRPC == "" {
jd := env.JobDistributor
require.NotNil(t, jd, "JD is not found in test environment")
jdConfig = JDConfig{
GRPC: jd.Grpc,
// we will use internal wsrpc for nodes on same docker network to connect to JD
Expand Down
13 changes: 6 additions & 7 deletions integration-tests/docker/test_env/test_env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) {
log.Warn().Msg("Chainlink node log scanner settings provided, but LogStream is not enabled. Ignoring Chainlink node log scanner settings, as no logs will be available.")
}

if b.jdConfig != nil {
err := b.te.StartJobDistributor(b.jdConfig)
if err != nil {
return nil, err
}
}
// in this case we will use the builder only to start chains, not the cluster, because currently we support only 1 network config per cluster
if len(b.privateEthereumNetworks) > 1 {
b.te.rpcProviders = make(map[int64]*test_env.RpcProvider)
Expand Down Expand Up @@ -545,13 +551,6 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) {
b.defaultNodeCsaKeys = nodeCsaKeys
}

if b.jdConfig != nil {
err := b.te.StartJobDistributor(b.jdConfig)
if err != nil {
return nil, err
}
}

var enDesc string
if len(b.te.PrivateEthereumConfigs) > 0 {
for _, en := range b.te.PrivateEthereumConfigs {
Expand Down

0 comments on commit 468bfc0

Please sign in to comment.