Skip to content
Snippets Groups Projects
Commit 8e713d9f authored by Hossein Pursultani's avatar Hossein Pursultani
Browse files

Remove the additional unicorn spec

The new spec was failing and it was a false negative.
parent 07e6abb0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -119,6 +119,9 @@ RSpec.describe 'gitlab::puma with Ubuntu 16.04' do
max_threads: 10,
per_worker_max_memory_mb: 1000
)
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-workhorse/run").with_content { |content|
expect(content).to match(%r(-authSocket /tmp/puma.socket))
}
expect(Gitlab['gitlab_workhorse']['auth_socket']).to eq('/tmp/puma.socket')
end
end
Loading
Loading
Loading
Loading
@@ -183,24 +183,4 @@ RSpec.describe 'gitlab::unicorn' do
}
end
end
context 'custom socket location' do
before do
allow(Gitlab).to receive(:[]).and_call_original
stub_gitlab_rb(
unicorn: {
enable: true,
socket: '/fake/socket'
},
puma: { enable: false }
)
end
it 'should update workhorse auth_socket and render the unicorn.rb file' do
expect(chef_run).to render_file('/var/opt/gitlab/gitlab-rails/etc/unicorn.rb').with_content { |content|
expect(content).to match(/^listen \"\/fake\/socket\"/)
}
expect(Gitlab['gitlab_workhorse']['auth_socket']).to eq('/fake/socket')
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment