FIX: Don't attempt to migrate multisite test db while holding the mutex (#14298)
Since you'll have to wait for the mutex to timeout before it can continue.
This commit is contained in:
parent
3469f7b74f
commit
6262396d8a
|
@ -231,10 +231,10 @@ task 'db:migrate' => ['load_config', 'environment', 'set_locale'] do |_, args|
|
||||||
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
||||||
SiteIconManager.ensure_optimized!
|
SiteIconManager.ensure_optimized!
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if !Discourse.is_parallel_test? && MultisiteTestHelpers.load_multisite?
|
if !Discourse.is_parallel_test? && MultisiteTestHelpers.load_multisite?
|
||||||
system("RAILS_DB=discourse_test_multisite rake db:migrate")
|
system("RAILS_DB=discourse_test_multisite rake db:migrate")
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue