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
Jérome Perrin
gitlab-ce
Commits
3366e38c
Commit
3366e38c
authored
Aug 22, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation in migration helpers
parent
a7c54a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/lib/gitlab/database/migration_helpers_spec.rb
spec/lib/gitlab/database/migration_helpers_spec.rb
+9
-9
No files found.
spec/lib/gitlab/database/migration_helpers_spec.rb
View file @
3366e38c
...
@@ -875,18 +875,18 @@ describe Gitlab::Database::MigrationHelpers do
...
@@ -875,18 +875,18 @@ describe Gitlab::Database::MigrationHelpers do
describe
'#migrate_sidekiq_queue'
do
describe
'#migrate_sidekiq_queue'
do
it
'migrates jobs from one sidekiq queue to another'
do
it
'migrates jobs from one sidekiq queue to another'
do
Sidekiq
::
Testing
.
disable!
do
Sidekiq
::
Testing
.
disable!
do
worker
.
perform_async
(
'Something'
,
[
1
])
worker
.
perform_async
(
'Something'
,
[
1
])
worker
.
perform_async
(
'Something'
,
[
2
])
worker
.
perform_async
(
'Something'
,
[
2
])
expect
(
model
.
sidekiq_queue_length
(
'test'
)).
to
eq
2
expect
(
model
.
sidekiq_queue_length
(
'test'
)).
to
eq
2
expect
(
model
.
sidekiq_queue_length
(
'new_test'
)).
to
eq
0
expect
(
model
.
sidekiq_queue_length
(
'new_test'
)).
to
eq
0
model
.
sidekiq_queue_migrate
(
'test'
,
to:
'new_test'
)
model
.
sidekiq_queue_migrate
(
'test'
,
to:
'new_test'
)
expect
(
model
.
sidekiq_queue_length
(
'test'
)).
to
eq
0
expect
(
model
.
sidekiq_queue_length
(
'test'
)).
to
eq
0
expect
(
model
.
sidekiq_queue_length
(
'new_test'
)).
to
eq
2
expect
(
model
.
sidekiq_queue_length
(
'new_test'
)).
to
eq
2
end
end
end
end
end
end
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