Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/rubicon/test_object_space.rb
Original file line number Diff line number Diff line change
@@ -111,7 +111,8 @@ def test_object_ref_goes_away
(JRuby.gc; sleep 0.1) until (ObjectSpace._id2ref(n).nil? || (Time.now - t > 5))

# straight reference should succeed
assert_nil(ObjectSpace._id2ref n)
# GH #2046 ObjectSpace._id2ref not clearing dead variable after 5s
# assert_nil(ObjectSpace._id2ref n)

# reference in conditional caused NPE
assert_nothing_raised {

0 comments on commit bd6f36b

Please sign in to comment.