mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 09:53:24 -05:00
DEV: Set Regex timeout for migrations (#35190)
This commit is contained in:
@@ -9,6 +9,7 @@ require "thor"
|
||||
module Migrations
|
||||
configure_zeitwerk
|
||||
enable_i18n
|
||||
apply_global_config
|
||||
|
||||
module CLI
|
||||
class Application < Thor
|
||||
|
||||
@@ -84,4 +84,8 @@ module Migrations
|
||||
I18n.default_locale = :en
|
||||
I18n.locale = :en
|
||||
end
|
||||
|
||||
def self.apply_global_config
|
||||
Regexp.timeout = 2
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,6 +7,7 @@ require_relative "../migrations"
|
||||
|
||||
::Migrations.configure_zeitwerk
|
||||
::Migrations.enable_i18n
|
||||
::Migrations.apply_global_config
|
||||
|
||||
require "rspec-multi-mock"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user