BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
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