1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Warm-up to avoid autoloads interfering with class serial

This commit is contained in:
Matthew Draper 2022-02-22 21:00:16 +10:30
parent bdb0610c10
commit e4140140af

View file

@ -232,6 +232,9 @@ class ExecutorTest < ActiveSupport::TestCase
executor.register_hook(hook)
# Warm-up to trigger any pending autoloads
executor.wrap { }
before = RubyVM.stat(:class_serial)
executor.wrap { }
executor.wrap { }