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
8de4faca
Commit
8de4faca
authored
Jul 23, 2021
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve GraphQL epics request spec
parent
a3966076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ee/spec/requests/api/graphql/group/epics_spec.rb
ee/spec/requests/api/graphql/group/epics_spec.rb
+1
-3
No files found.
ee/spec/requests/api/graphql/group/epics_spec.rb
View file @
8de4faca
...
...
@@ -194,12 +194,10 @@ RSpec.describe 'Epics through GroupQuery' do
epics_with_parent
=
create_list
(
:epic
,
3
,
group:
group
)
do
|
epic
|
epic
.
update!
(
parent:
create
(
:epic
,
group:
group
))
end
group
.
reload
# Threshold of 3 due to an existing N+1 with licenses
expect
do
post_graphql
(
query
({
iids:
epics_with_parent
.
pluck
(
:iid
)
}),
current_user:
user
)
end
.
not_to
exceed_query_limit
(
control_count
)
.
with_threshold
(
3
)
end
.
not_to
exceed_query_limit
(
control_count
)
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