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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
dd4b35f8
Commit
dd4b35f8
authored
Nov 26, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test for MySQL
parent
e5cf23df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb
...b/background_migration/populate_untracked_uploads_spec.rb
+6
-4
No files found.
spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb
View file @
dd4b35f8
...
@@ -71,8 +71,9 @@ describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :migration, :sid
...
@@ -71,8 +71,9 @@ describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :migration, :sid
end
end
it
'uses the start and end batch ids [only 1st half]'
do
it
'uses the start and end batch ids [only 1st half]'
do
start_id
=
untracked_files_for_uploads
.
all
.
to_a
[
0
].
id
ids
=
untracked_files_for_uploads
.
all
.
order
(
:id
).
pluck
(
:id
)
end_id
=
untracked_files_for_uploads
.
all
.
to_a
[
3
].
id
start_id
=
ids
[
0
]
end_id
=
ids
[
3
]
expect
do
expect
do
subject
.
perform
(
start_id
,
end_id
)
subject
.
perform
(
start_id
,
end_id
)
...
@@ -89,8 +90,9 @@ describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :migration, :sid
...
@@ -89,8 +90,9 @@ describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :migration, :sid
end
end
it
'uses the start and end batch ids [only 2nd half]'
do
it
'uses the start and end batch ids [only 2nd half]'
do
start_id
=
untracked_files_for_uploads
.
all
.
to_a
[
4
].
id
ids
=
untracked_files_for_uploads
.
all
.
order
(
:id
).
pluck
(
:id
)
end_id
=
untracked_files_for_uploads
.
all
.
to_a
[
7
].
id
start_id
=
ids
[
4
]
end_id
=
ids
[
7
]
expect
do
expect
do
subject
.
perform
(
start_id
,
end_id
)
subject
.
perform
(
start_id
,
end_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