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
d156b7d3
Commit
d156b7d3
authored
May 31, 2020
by
Imre Farkas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower expected query counts in EpicsFinder spec
parent
dfc54ba2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ee/spec/finders/epics_finder_spec.rb
ee/spec/finders/epics_finder_spec.rb
+6
-6
No files found.
ee/spec/finders/epics_finder_spec.rb
View file @
d156b7d3
...
...
@@ -57,8 +57,8 @@ RSpec.describe EpicsFinder do
expect
(
epics
).
to
contain_exactly
(
epic1
,
epic2
,
epic3
)
end
it
'does not execute more than
9
SQL queries'
do
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
9
)
it
'does not execute more than
8
SQL queries'
do
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
8
)
end
context
'sorting'
do
...
...
@@ -169,18 +169,18 @@ RSpec.describe EpicsFinder do
end
end
it
'does not execute more than 1
4
SQL queries'
do
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
1
4
)
it
'does not execute more than 1
2
SQL queries'
do
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
1
2
)
end
it
'does not execute more than 1
5
SQL queries when checking namespace plans'
do
it
'does not execute more than 1
3
SQL queries when checking namespace plans'
do
allow
(
Gitlab
::
CurrentSettings
)
.
to
receive
(
:should_check_namespace_plan?
)
.
and_return
(
true
)
create
(
:gitlab_subscription
,
:gold
,
namespace:
group
)
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
1
5
)
expect
{
epics
.
to_a
}.
not_to
exceed_all_query_limit
(
1
3
)
end
end
...
...
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