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
7dfba610
Commit
7dfba610
authored
Sep 15, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce the range to size of 5
This is a bit more acceptable: just under 2min, and 1175 examples.
parent
a506adc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec/lib/gitlab/relative_positioning/mover_spec.rb
spec/lib/gitlab/relative_positioning/mover_spec.rb
+1
-1
No files found.
spec/lib/gitlab/relative_positioning/mover_spec.rb
View file @
7dfba610
...
@@ -14,7 +14,7 @@ RSpec.describe RelativePositioning::Mover do
...
@@ -14,7 +14,7 @@ RSpec.describe RelativePositioning::Mover do
create
(
:issue
,
author:
user
,
project:
parent
,
relative_position:
pos
)
create
(
:issue
,
author:
user
,
project:
parent
,
relative_position:
pos
)
end
end
range
=
(
101
..
10
6
)
range
=
(
101
..
10
5
)
indices
=
(
0
..
).
take
(
range
.
size
)
indices
=
(
0
..
).
take
(
range
.
size
)
let
(
:start
)
{
((
range
.
first
+
range
.
last
)
/
2.0
).
floor
}
let
(
:start
)
{
((
range
.
first
+
range
.
last
)
/
2.0
).
floor
}
...
...
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