Fix specs for MySQL

This commit is contained in:
Michael Kozono 2017-12-06 12:20:06 -08:00
parent 03cba8c0f1
commit 24c348f0d1
2 changed files with 5 additions and 0 deletions

View File

@ -9,7 +9,10 @@ describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq do
let!(:uploads) { described_class::Upload }
before do
DatabaseCleaner.clean
drop_temp_table_if_exists
ensure_temporary_tracking_table_exists
uploads.delete_all
end
after(:all) do

View File

@ -18,6 +18,8 @@ describe Gitlab::BackgroundMigration::PrepareUntrackedUploads, :sidekiq do
end
before do
DatabaseCleaner.clean
drop_temp_table_if_exists
end