diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-08-03 17:11:32 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-04 08:52:39 +0000 |
commit | 7a0bb1afb81da3c83f2cc59403826e1f855d3f0d (patch) | |
tree | 40e7732c579451bd0a1148d6075b7e76c8736660 /test | |
parent | dd84e5742cb2fc6aaa96aa0214e0ed3a963d68da (diff) | |
download | raindrops-7a0bb1afb81da3c83f2cc59403826e1f855d3f0d.tar.gz |
It's not pretty...
Diffstat (limited to 'test')
-rw-r--r-- | test/test_raindrops_gc.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_raindrops_gc.rb b/test/test_raindrops_gc.rb index b473619..a1fc3de 100644 --- a/test/test_raindrops_gc.rb +++ b/test/test_raindrops_gc.rb @@ -4,9 +4,12 @@ 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 |