test/test_raindrops_gc.rb in raindrops-0.3.0 vs test/test_raindrops_gc.rb in raindrops-0.4.0
- old
+ new
@@ -2,12 +2,15 @@
require 'test/unit'
require 'raindrops'
class TestRaindropsGc < Test::Unit::TestCase
+ # we may need to create more garbage as GC may be less aggressive
+ # about expiring things. This is completely unrealistic code,
+ # though...
def test_gc
assert_nothing_raised do
- 1000000.times { Raindrops.new(24) }
+ 1000000.times { |i| Raindrops.new(24); [] }
end
end
end