Skip to content

Commit e414014

Browse files
committed
Warm-up to avoid autoloads interfering with class serial
1 parent bdb0610 commit e414014

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

activesupport/test/executor_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ def test_class_serial_is_unaffected
232232

233233
executor.register_hook(hook)
234234

235+
# Warm-up to trigger any pending autoloads
236+
executor.wrap { }
237+
235238
before = RubyVM.stat(:class_serial)
236239
executor.wrap { }
237240
executor.wrap { }

0 commit comments

Comments
 (0)