Commit e3e041f8 authored by Markus Koller's avatar Markus Koller

Merge branch 'sh-cleanup-gitaly2-test' into 'master'

Clean up second Gitaly process in tests

See merge request gitlab-org/gitlab!50855
parents 6bd1be63 40d5485a
...@@ -203,10 +203,13 @@ module TestEnv ...@@ -203,10 +203,13 @@ module TestEnv
end end
gitaly_pid = Integer(File.read(TMP_TEST_PATH.join('gitaly.pid'))) gitaly_pid = Integer(File.read(TMP_TEST_PATH.join('gitaly.pid')))
gitaly2_pid = Integer(File.read(TMP_TEST_PATH.join('gitaly2.pid')))
praefect_pid = Integer(File.read(TMP_TEST_PATH.join('praefect.pid'))) praefect_pid = Integer(File.read(TMP_TEST_PATH.join('praefect.pid')))
Kernel.at_exit { stop(gitaly_pid) } Kernel.at_exit do
Kernel.at_exit { stop(praefect_pid) } pids = [gitaly_pid, gitaly2_pid, praefect_pid]
pids.each { |pid| stop(pid) }
end
wait('gitaly') wait('gitaly')
wait('praefect') wait('praefect')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment