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
ef0d53fe
Commit
ef0d53fe
authored
Feb 14, 2020
by
Erick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec to expect correct query count in FOSS only
parent
1a9f1db4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spec/serializers/pipeline_details_entity_spec.rb
spec/serializers/pipeline_details_entity_spec.rb
+6
-2
No files found.
spec/serializers/pipeline_details_entity_spec.rb
View file @
ef0d53fe
...
@@ -188,8 +188,10 @@ describe PipelineDetailsEntity do
...
@@ -188,8 +188,10 @@ describe PipelineDetailsEntity do
expect
(
names
).
to
match_array
(
%w[build_1 build_2 build_3]
)
expect
(
names
).
to
match_array
(
%w[build_1 build_2 build_3]
)
end
end
expected_queries
=
Gitlab
.
ee?
?
42
:
29
# This makes only one query to fetch all job artifacts
# This makes only one query to fetch all job artifacts
expect
(
recorder
.
count
).
to
eq
(
42
)
expect
(
recorder
.
count
).
to
eq
(
expected_queries
)
end
end
end
end
...
@@ -203,8 +205,10 @@ describe PipelineDetailsEntity do
...
@@ -203,8 +205,10 @@ describe PipelineDetailsEntity do
expect
(
names
).
to
match_array
(
%w[build_1 build_2 build_3]
)
expect
(
names
).
to
match_array
(
%w[build_1 build_2 build_3]
)
end
end
expected_queries
=
Gitlab
.
ee?
?
44
:
31
# This makes one query for each job artifact
# This makes one query for each job artifact
expect
(
recorder
.
count
).
to
eq
(
44
)
expect
(
recorder
.
count
).
to
eq
(
expected_queries
)
end
end
end
end
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