summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb')
-rw-r--r--spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb b/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
index ebe019924d5..3965eb722a0 100644
--- a/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
+++ b/spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
@@ -5,7 +5,9 @@ require 'spec_helper'
# For easier debugging set `UNICORN_DEBUG=1`
describe Gitlab::Cluster::Mixins::UnicornHttpServer do
- UNICORN_STARTUP_TIMEOUT = 30
+ before do
+ stub_const('UNICORN_STARTUP_TIMEOUT', 30)
+ end
context 'when running Unicorn' do
using RSpec::Parameterized::TableSyntax