summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index ad48d70799a..edbaa163b45 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -1554,11 +1554,11 @@ class TestBigDecimal < Test::Unit::TestCase
end
def assert_no_memory_leak(code, *rest, **opt)
- code = "5.times {1_000.times {begin #{code}; rescue NoMemoryError; end; GC.start}} if b"
+ code = "8.times {20_000.times {begin #{code}; rescue NoMemoryError; end}; GC.start}"
super(["-rbigdecimal"],
"b = BigDecimal('10'); b.nil?; " \
"GC.add_stress_to_class(BigDecimal); "\
- "#{code}", code, *rest, rss: true, **opt)
+ "#{code}", code, *rest, rss: true, limit: 1.1, **opt)
end
if EnvUtil.gc_stress_to_class?