Commit 4af914c2 authored by Stan Hu's avatar Stan Hu Committed by Rémy Coutable

Disable caching of tables for migration spec that drops a temporary table

This is to fix job failures, such as https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/51409392.
parent 0a22ff26
require 'spec_helper'
describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq do
describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq, :delete_no_cache do
include TrackUntrackedUploadsHelpers
subject { described_class.new }
......
......@@ -35,6 +35,10 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :deletion
end
config.before(:each, :delete_no_cache) do
DatabaseCleaner.strategy = :deletion, { cache_tables: false }
end
config.before(:each, :migration) do
DatabaseCleaner.strategy = :deletion, { cache_tables: false }
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