We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a259ce4 commit 9a840fdCopy full SHA for 9a840fd
test/ruby/test_gc.rb
@@ -419,7 +419,7 @@ def test_latest_gc_info_weak_references_count
419
GC.start
420
421
# Sometimes the WeakMap has a few elements, which might be held on by registers.
422
- assert_operator(wmap.size, :<=, 2)
+ assert_operator(wmap.size, :<=, count / 1000)
423
424
assert_operator(GC.latest_gc_info(:weak_references_count), :<=, before_weak_references_count - count + error_tolerance)
425
assert_operator(GC.latest_gc_info(:retained_weak_references_count), :<=, before_retained_weak_references_count - count + error_tolerance)
0 commit comments