diff options
-rw-r--r-- | spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb | 2 | ||||
-rw-r--r-- | spec/support/db_cleaner.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb b/spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb index 8590522f3ef..5caf7e6cc4c 100644 --- a/spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb +++ b/spec/lib/gitlab/background_migration/populate_untracked_uploads_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq do +describe Gitlab::BackgroundMigration::PopulateUntrackedUploads, :sidekiq, :delete_no_cache do include TrackUntrackedUploadsHelpers subject { described_class.new } diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb index 1809ae1d141..259e45ed8e2 100644 --- a/spec/support/db_cleaner.rb +++ b/spec/support/db_cleaner.rb @@ -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 |