about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
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