summaryrefslogtreecommitdiff
path: root/spec/unicorn
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-04-28 13:51:19 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-04-28 13:51:19 +0200
commit3532b8db712d1d6daa0a656b0fde317af9b8ae53 (patch)
tree27973c36d34e82be4aa9b5d0fb8fd2c50077acf9 /spec/unicorn
parent628163b1b3b9a749568c9516365c3a87e3f98239 (diff)
downloadgitlab-ce-3532b8db712d1d6daa0a656b0fde317af9b8ae53.tar.gz
Remove config lines in one place
Diffstat (limited to 'spec/unicorn')
-rw-r--r--spec/unicorn/unicorn_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unicorn/unicorn_spec.rb b/spec/unicorn/unicorn_spec.rb
index 1214bd96c0d..8518c047a47 100644
--- a/spec/unicorn/unicorn_spec.rb
+++ b/spec/unicorn/unicorn_spec.rb
@@ -11,22 +11,22 @@ describe 'Unicorn' do
# Remove these because they make setup harder.
config_lines = config_lines.reject do |line|
%w[
+ working_directory
+ worker_processes
+ listen
pid
stderr_path
stdout_path
].any? { |prefix| line.start_with?(prefix) }
end
- config_lines = config_lines.reject { |l| l.start_with?('working_directory') }
config_lines << "working_directory '#{Rails.root}'"
# We want to have exactly 1 worker process because that makes it
# predictable which process will handle our requests.
- config_lines = config_lines.reject { |l| l.start_with?('worker_processes') }
config_lines << 'worker_processes 1'
@socket_path = File.join(Dir.pwd, 'tmp/tests/unicorn.socket')
- config_lines = config_lines.reject { |l| l.start_with?('listen') }
config_lines << "listen '#{@socket_path}'"
ready_file = 'tmp/tests/unicorn-worker-ready'