Skip to content

Commit aa255b2

Browse files
committed
✅🚧 Mark 2 Config tests as pending for TruffleRuby
1 parent 26b8819 commit aa255b2

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

test/net/imap/test_config.rb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,15 @@ def duck.to_r = 1/11111
270270
test "#freeze" do
271271
config = Config.new(open_timeout: 1)
272272
config.freeze
273-
assert_raise FrozenError do
274-
config.open_timeout = 2
273+
assert config.frozen?
274+
assert config.__send__(:data).frozen?
275+
pend_if_truffleruby "https://github.com/oracle/truffleruby/issues/3850" do
276+
assert_raise FrozenError do
277+
config.open_timeout = 2
278+
assert_equal 1, config.open_timeout
279+
end
280+
assert_equal 1, config.open_timeout
275281
end
276-
assert_same 1, config.open_timeout
277282
end
278283

279284
test "#dup" do
@@ -302,10 +307,14 @@ def duck.to_r = 1/11111
302307
original.freeze
303308
copy = original.clone
304309
assert copy.frozen?
305-
assert_raise FrozenError do
306-
copy.open_timeout = 2
310+
assert copy.__send__(:data).frozen?
311+
pend_if_truffleruby "https://github.com/oracle/truffleruby/issues/3850" do
312+
assert_raise FrozenError do
313+
copy.open_timeout = 2
314+
assert_equal 1, copy.open_timeout
315+
end
316+
assert_equal 1, copy.open_timeout
307317
end
308-
assert_equal 1, copy.open_timeout
309318
end
310319

311320
test "#inherited? and #reset(attr)" do

0 commit comments

Comments
 (0)