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
a65f64df
Commit
a65f64df
authored
Jul 18, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix background migrations module specs
parent
73c7b968
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/background_migration_spec.rb
spec/lib/gitlab/background_migration_spec.rb
+3
-3
No files found.
spec/lib/gitlab/background_migration_spec.rb
View file @
a65f64df
...
...
@@ -25,7 +25,7 @@ describe Gitlab::BackgroundMigration do
expect
(
queue
[
0
]).
to
receive
(
:delete
).
and_return
(
true
)
expect
(
described_class
).
to
receive
(
:perform
)
.
with
(
'Foo'
,
[
10
,
20
]
,
anything
)
.
with
(
'Foo'
,
[
10
,
20
])
described_class
.
steal
(
'Foo'
)
end
...
...
@@ -93,9 +93,9 @@ describe Gitlab::BackgroundMigration do
it
'steals from the scheduled sets queue first'
do
Sidekiq
::
Testing
.
disable!
do
expect
(
described_class
).
to
receive
(
:perform
)
.
with
(
'Object'
,
[
1
]
,
anything
).
ordered
.
with
(
'Object'
,
[
1
]).
ordered
expect
(
described_class
).
to
receive
(
:perform
)
.
with
(
'Object'
,
[
2
]
,
anything
).
ordered
.
with
(
'Object'
,
[
2
]).
ordered
BackgroundMigrationWorker
.
perform_async
(
'Object'
,
[
2
])
BackgroundMigrationWorker
.
perform_in
(
10
.
minutes
,
'Object'
,
[
1
])
...
...
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