Skip to content

Commit

Permalink
Merge pull request #891 from cucumber/set-environment-once
Browse files Browse the repository at this point in the history
Depend on process launcher to set child process environment
  • Loading branch information
mvz authored Jan 20, 2023
2 parents 6f978e9 + 661a27e commit d3049ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/aruba/processes/spawn_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ def start
@process.environment.update(environment)

begin
Aruba.platform.with_environment(environment) do
@process.start
sleep startup_wait_time
end
@process.start
sleep startup_wait_time
rescue ChildProcess::LaunchError => e
raise LaunchError, "It tried to start #{commandline}. " + e.message
end
Expand Down

0 comments on commit d3049ec

Please sign in to comment.