Skip to content
Permalink
Browse files
Make issue on object space regression on master #2046
  • Loading branch information
enebo committed Oct 15, 2014
1 parent 7b544fb commit bd6f36bd5efcc41981b04421d2ff9504a0d31b53
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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.