Skip to content

Commit be9d64f

Browse files
committed
Remove not needed test for ObjectSpace::WeakKeyMap
1 parent e1fd716 commit be9d64f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

spec/truffle/objectspace/weak_key_map_spec.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,6 @@
2727
map.getkey(key).should == nil
2828
end
2929

30-
it "has iterators methods that exclude unreferenced objects" do
31-
# This spec does not pass on MRI because the garbage collector is presumably too conservative and will not get rid
32-
# of the references eagerly enough.
33-
34-
map = ObjectSpace::WeakKeyMap.new
35-
k1, k2 = %w[a b].map(&:upcase)
36-
v1, v2 = %w[x y].map(&:upcase)
37-
map[k1] = v1
38-
map[k2] = v2
39-
k2 = nil
40-
41-
Primitive.gc_force
42-
43-
map.key?(k2).should == false
44-
map[k2].should == nil
45-
46-
map.key?(k1).should == true
47-
map[k1].should == v1
48-
end
49-
5030
it "supports frozen objects" do
5131
map = ObjectSpace::WeakKeyMap.new
5232
k = "x".freeze

0 commit comments

Comments
 (0)