DEV: Set Regex timeout for migrations (#35190)

This commit is contained in:
Gerhard Schlager
2025-10-06 16:29:34 +02:00
committed by GitHub
parent 71834c898f
commit f96e47106b
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ require "thor"
module Migrations
configure_zeitwerk
enable_i18n
apply_global_config
module CLI
class Application < Thor
+4
View File
@@ -84,4 +84,8 @@ module Migrations
I18n.default_locale = :en
I18n.locale = :en
end
def self.apply_global_config
Regexp.timeout = 2
end
end
+1
View File
@@ -7,6 +7,7 @@ require_relative "../migrations"
::Migrations.configure_zeitwerk
::Migrations.enable_i18n
::Migrations.apply_global_config
require "rspec-multi-mock"