Backport flaky no object allocation test fix

Backported from commit 8625e66453
This commit is contained in:
Dylan Thacker-Smith
2023-01-11 10:42:36 -05:00
parent fe4961568f
commit cad23719c5
+1
View File
@@ -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