Skip to content

Commit

Permalink
Lengthen out for lack of determinism in this fixture. JRuby GC.start …
Browse files Browse the repository at this point in the history
…is no-op and we need to hope a real GC kicks in. 1000 seems to do it but we will make it much larger just in case
enebo committed Mar 1, 2017
1 parent d66273e commit a1c02e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/library/weakref/fixtures/classes.rb
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ def self.make_weakref(level = 10)
def self.make_dead_weakref
weaks = []
weak = nil
100.times do
10_000.times do
weaks << make_weakref
GC.start
GC.start

0 comments on commit a1c02e1

Please sign in to comment.