summaryrefslogtreecommitdiff
path: root/spec/uploaders
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-06-07 10:01:47 -0400
committerMicaël Bergeron <mbergeron@gitlab.com>2018-06-07 10:01:47 -0400
commit44975f8a5ad9c40c615f47f683fb46c94aa0e130 (patch)
tree0b1cc1830e84dfd3a77d916352a2c23cbbde5ab5 /spec/uploaders
parent38c2e480bfa180241e94e77c049b1f5256d83bcf (diff)
downloadgitlab-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.rb3
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