Skip to content

Commit

Permalink
Make issue on object space regression on master #2046
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Oct 15, 2014
1 parent 7b544fb commit bd6f36b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/rubicon/test_object_space.rb
Expand Up @@ -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 {
Expand Down

0 comments on commit bd6f36b

Please sign in to comment.