diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-06-07 10:01:47 -0400 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-06-07 10:01:47 -0400 |
commit | 44975f8a5ad9c40c615f47f683fb46c94aa0e130 (patch) | |
tree | 0b1cc1830e84dfd3a77d916352a2c23cbbde5ab5 /spec/uploaders | |
parent | 38c2e480bfa180241e94e77c049b1f5256d83bcf (diff) | |
download | gitlab-ce-44975f8a5ad9c40c615f47f683fb46c94aa0e130.tar.gz |
shave off another 20% query
Diffstat (limited to 'spec/uploaders')
-rw-r--r-- | spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb b/spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb index 18da0c6d39a..ba01cfe53c5 100644 --- a/spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb +++ b/spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -MIGRATION_QUERIES = 7 +MIGRATION_QUERIES = 5 describe ObjectStorage::MigrateUploadsWorker, :sidekiq do shared_context 'sanity_check! fails' do @@ -14,7 +14,6 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do let(:to_store) { ObjectStorage::Store::REMOTE } def perform(uploads) - binding.pry described_class.new.perform(uploads.ids, model_class.to_s, mounted_as, to_store) rescue ObjectStorage::MigrateUploadsWorker::Report::MigrationFailures # swallow |