We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a9995f + 53b1bc7 commit 35a0bfeCopy full SHA for 35a0bfe
Rakefile
@@ -97,8 +97,18 @@ namespace :spec do
97
end
98
puts "== Rails server started with PID #{rails_pid} =="
99
100
+ puts "\n== Starting simulated queue worker =="
101
+ simulator_pid = Bundler.with_original_env do
102
+ spawn("bin/rails app:evm:simulate_queue_worker", [:out, :err] => "/dev/null")
103
+ end
104
+ puts "== Simulated queue worker started with PID #{simulator_pid} =="
105
+
106
Rake::Task["spec:cypress:run"].invoke
107
ensure
108
+ if simulator_pid
109
+ puts "\n== Killing simulated queue worker with PID #{simulator_pid} =="
110
+ Process.kill("INT", simulator_pid)
111
112
if rails_pid
113
puts "\n== Killing Rails server with PID #{rails_pid} =="
114
Process.kill("INT", rails_pid)
0 commit comments