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
3b8a4a47
Commit
3b8a4a47
authored
Sep 04, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assert that we pass at most QUERY_LIMIT items to be moved
parent
299e26be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spec/workers/issue_placement_worker_spec.rb
spec/workers/issue_placement_worker_spec.rb
+5
-1
No files found.
spec/workers/issue_placement_worker_spec.rb
View file @
3b8a4a47
...
...
@@ -38,7 +38,11 @@ RSpec.describe IssuePlacementWorker do
end
it
'limits the sweep to QUERY_LIMIT records'
do
create_list
(
:issue
,
described_class
::
QUERY_LIMIT
-
5
,
**
unplaced
)
# Ensure there are more than N issues in this set
n
=
described_class
::
QUERY_LIMIT
create_list
(
:issue
,
n
-
5
,
**
unplaced
)
expect
(
Issue
).
to
receive
(
:move_nulls_to_end
).
with
(
have_attributes
(
count:
n
)).
and_call_original
described_class
.
new
.
perform
(
issue
.
id
)
...
...
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