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
1 changed files with 3 additions and 0 deletions

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 { }