mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 00:40:40 -07:00
Backport flaky no object allocation test fix
Backported from commit 8625e66453
This commit is contained in:
@@ -447,6 +447,7 @@ class ContextUnitTest < Minitest::Test
|
||||
end
|
||||
|
||||
def test_interrupt_avoids_object_allocations
|
||||
@context.interrupt? # ruby 3.0.0 allocates on the first call
|
||||
assert_no_object_allocations do
|
||||
@context.interrupt?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user