test: make GC test (hopefully) more reliable
[raindrops.git] / test / test_raindrops_gc.rb
bloba1fc3de709abcd8a94b0cbe1237bfa0c8302a9dd
1 # -*- encoding: binary -*-
2 require 'test/unit'
3 require 'raindrops'
5 class TestRaindropsGc < Test::Unit::TestCase
7   # we may need to create more garbage as GC may be less aggressive
8   # about expiring things.  This is completely unrealistic code,
9   # though...
10   def test_gc
11     assert_nothing_raised do
12       1000000.times { |i| Raindrops.new(24); [] }
13     end
14   end
16 end