Skip to content
Snippets Groups Projects
Commit 87119f78 authored by Sean McGivern's avatar Sean McGivern
Browse files

Merge branch 'fix/gb/avoid-races-when-cleaning-db-in-tests' into 'master'

Resolve transient failures related to testing migrations

Closes #36745

See merge request !13761
parents 39b5bd69 72018278
No related branches found
No related tags found
2 merge requests!14773Maxraab master patch 51809,!13761Resolve transient failures related to testing migrations
Pipeline #
Loading
Loading
@@ -4,18 +4,18 @@ RSpec.configure do |config|
end
 
config.append_after(:context) do
DatabaseCleaner.clean_with(:truncation)
DatabaseCleaner.clean_with(:truncation, cache_tables: false)
end
 
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
 
config.before(:each, js: true) do
config.before(:each, :js) do
DatabaseCleaner.strategy = :truncation
end
 
config.before(:each, truncate: true) do
config.before(:each, :truncate) do
DatabaseCleaner.strategy = :truncation
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