Commit 965b4176 authored by Douwe Maan's avatar Douwe Maan

Fix MySQL build failure

parent 62c93ab9
......@@ -30,7 +30,7 @@ class CleanupNamespacelessPendingDeleteProjects < ActiveRecord::Migration
private
def pending_delete_batch
connection.exec_query(find_batch).map{ |row| row['id'] }
connection.exec_query(find_batch).map{ |row| row['id'].to_i }
end
BATCH_SIZE = 5000
......
......@@ -15,7 +15,7 @@ describe CleanupNamespacelessPendingDeleteProjects do
project = build(:empty_project, pending_delete: true, namespace_id: nil)
project.save(validate: false)
expect(NamespacelessProjectDestroyWorker).to receive(:bulk_perform_async).with([[project.id.to_s]])
expect(NamespacelessProjectDestroyWorker).to receive(:bulk_perform_async).with([[project.id]])
described_class.new.up
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment