about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-08-03 17:11:32 -0700
committerEric Wong <normalperson@yhbt.net>2010-08-04 08:52:39 +0000
commit7a0bb1afb81da3c83f2cc59403826e1f855d3f0d (patch)
tree40e7732c579451bd0a1148d6075b7e76c8736660 /test
parentdd84e5742cb2fc6aaa96aa0214e0ed3a963d68da (diff)
downloadraindrops-7a0bb1afb81da3c83f2cc59403826e1f855d3f0d.tar.gz
It's not pretty...
Diffstat (limited to 'test')
-rw-r--r--test/test_raindrops_gc.rb5
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