Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4090fed3
Commit
4090fed3
authored
Mar 17, 2021
by
nmilojevic1
Committed by
Quang-Minh Nguyen
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs when load balanicng is configured
parent
a474f44a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ee/spec/lib/gitlab/database/load_balancing_spec.rb
ee/spec/lib/gitlab/database/load_balancing_spec.rb
+3
-1
No files found.
ee/spec/lib/gitlab/database/load_balancing_spec.rb
View file @
4090fed3
...
...
@@ -134,6 +134,7 @@ RSpec.describe Gitlab::Database::LoadBalancing do
before
do
subject
.
clear_configuration
allow
(
described_class
).
to
receive
(
:hosts
).
and_return
(
%w(foo)
)
end
it
'returns false when no hosts are specified'
do
...
...
@@ -156,7 +157,6 @@ RSpec.describe Gitlab::Database::LoadBalancing do
end
it
'returns true when load balancing should be enabled'
do
allow
(
described_class
).
to
receive
(
:hosts
).
and_return
(
%w(foo)
)
allow
(
Gitlab
::
Runtime
).
to
receive
(
:sidekiq?
).
and_return
(
false
)
expect
(
described_class
.
enable?
).
to
eq
(
true
)
...
...
@@ -176,6 +176,7 @@ RSpec.describe Gitlab::Database::LoadBalancing do
context
'without a license'
do
before
do
License
.
destroy_all
# rubocop: disable Cop/DestroyAll
subject
.
clear_configuration
end
it
'is disabled'
do
...
...
@@ -237,6 +238,7 @@ RSpec.describe Gitlab::Database::LoadBalancing do
context
'without a license'
do
before
do
License
.
destroy_all
# rubocop: disable Cop/DestroyAll
subject
.
clear_configuration
end
it
'is not configured'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment