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
4323b1c3
Commit
4323b1c3
authored
Jul 09, 2021
by
Simon Tomlinson
Committed by
Andreas Brandl
Jul 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward PartitionCreationWorker to new worker
parent
eec02105
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
app/workers/partition_creation_worker.rb
app/workers/partition_creation_worker.rb
+2
-1
spec/workers/partition_creation_worker_spec.rb
spec/workers/partition_creation_worker_spec.rb
+18
-0
No files found.
app/workers/partition_creation_worker.rb
View file @
4323b1c3
...
...
@@ -10,6 +10,7 @@ class PartitionCreationWorker
idempotent!
def
perform
# Removed in favor of Database::PartitionManagementWorker
# This worker has been removed in favor of Database::PartitionManagementWorker
Database
::
PartitionManagementWorker
.
new
.
perform
end
end
spec/workers/partition_creation_worker_spec.rb
0 → 100644
View file @
4323b1c3
# frozen_string_literal: true
#
require
'spec_helper'
RSpec
.
describe
PartitionCreationWorker
do
subject
{
described_class
.
new
.
perform
}
let
(
:management_worker
)
{
double
}
describe
'#perform'
do
it
'forwards to the Database::PartitionManagementWorker'
do
expect
(
Database
::
PartitionManagementWorker
).
to
receive
(
:new
).
and_return
(
management_worker
)
expect
(
management_worker
).
to
receive
(
:perform
)
subject
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