summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-07-09 18:34:30 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-07-10 10:25:48 -0300
commit659aeba43c498b7a45fb1495371ded7436b238c9 (patch)
tree7f040aa5ec7703330627334b6532af714becc530 /spec/migrations
parentc15f836c3a38e7c512a1851bc09440da90af8ac6 (diff)
downloadgitlab-ce-659aeba43c498b7a45fb1495371ded7436b238c9.tar.gz
Use schedulers and delete diff files upon deadtuples check
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/enqueue_delete_diff_files_workers_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/migrations/enqueue_delete_diff_files_workers_spec.rb b/spec/migrations/enqueue_delete_diff_files_workers_spec.rb
index 803830d81cf..6bae870920c 100644
--- a/spec/migrations/enqueue_delete_diff_files_workers_spec.rb
+++ b/spec/migrations/enqueue_delete_diff_files_workers_spec.rb
@@ -2,11 +2,11 @@ require 'spec_helper'
require Rails.root.join('db', 'post_migrate', '20180619121030_enqueue_delete_diff_files_workers.rb')
describe EnqueueDeleteDiffFilesWorkers, :migration, :sidekiq do
- it 'correctly schedules diff files deletion' do
+ it 'correctly schedules diff files deletion schedulers' do
Sidekiq::Testing.fake! do
expect(BackgroundMigrationWorker)
.to receive(:perform_async)
- .with(described_class::MIGRATION)
+ .with(described_class::SCHEDULER)
.and_call_original
migrate!