Skip to content

Commit

Permalink
TestClass#test_subclass_gc reduce the number of iteration by 10x
Browse files Browse the repository at this point in the history
The test was taking 10 seconds on my machine and did timeout
on CI once.
  • Loading branch information
byroot authored and mame committed Dec 3, 2021
1 parent 0073f62 commit 324d57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ruby/test_class.rb
Expand Up @@ -793,11 +793,11 @@ def test_subclasses

def test_subclass_gc
c = Class.new
100000.times do
10_000.times do
cc = Class.new(c)
100.times { Class.new(cc) }
end
assert(c.subclasses.size <= 100000)
assert(c.subclasses.size <= 10_000)
end

def test_subclass_gc_stress
Expand Down

0 comments on commit 324d57d

Please sign in to comment.