summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-11-06 15:12:28 -0800
committerAaron Patterson <tenderlove@ruby-lang.org>2019-11-06 15:12:28 -0800
commite58814d150b0652f5e11958b36b85d977fdd0426 (patch)
tree1733515f939591caf954d8a80e3010cdd0981491 /test/ruby/test_gc.rb
parentbd2b314a05ae9192b3143e1e678a37c370d8a9ce (diff)
Revert "Use a monotonically increasing number for object_id"
This reverts commit bd2b314a05ae9192b3143e1e678a37c370d8a9ce.
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index f42e098863..1511ea3011 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -461,12 +461,4 @@ class TestGc < Test::Unit::TestCase
skip "finalizers did not get run" if @result.empty?
assert_equal([:c1, :c2], @result)
end
-
- def test_object_ids_never_repeat
- GC.start
- a = 1000.times.map { Object.new.object_id }
- GC.start
- b = 1000.times.map { Object.new.object_id }
- assert_empty(a & b)
- end
end