Skip to content
Snippets Groups Projects
Commit 4af914c2 authored by Stan Hu's avatar Stan Hu Committed by Rémy Coutable
Browse files

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
No related branches found
No related tags found
No related merge requests found
require 'spec_helper'
 
describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq do
describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq, :delete_no_cache do
include TrackUntrackedUploadsHelpers
 
subject { described_class.new }
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment