Skip to content

Commit 8d08bb3

Browse files
committed
Be gone…
1 parent 7a62bde commit 8d08bb3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/test_json_generate.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,4 @@ def to_s; self; end
345345
assert_equal '[""]', JSON.generate([s.new])
346346
end
347347
end
348-
349-
if EnvUtil.gc_stress_to_class?
350-
def assert_no_memory_leak(code, *rest, **opt)
351-
code = "8.times {20_000.times {begin #{code}; rescue NoMemoryError; end}; GC.start}"
352-
super(["-rjson/ext/generator"],
353-
"GC.add_stress_to_class(JSON::Ext::Generator::State); "\
354-
"#{code}", code, *rest, rss: true, limit: 1.1, **opt)
355-
end
356-
357-
def test_no_memory_leak_allocate
358-
assert_no_memory_leak("JSON::Ext::Generator::State.allocate")
359-
end
360-
end
361348
end

0 commit comments

Comments
 (0)