summaryrefslogtreecommitdiff
path: root/test/ostruct/test_ostruct.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-10-01 08:55:08 +0900
committerKoichi Sasada <ko1@atdot.net>2020-10-01 08:55:08 +0900
commitbc23216e5a4204b8e626704c7277e9edc1708189 (patch)
tree6fd08c136961865a0e96ed05eedcdcb32b3168a7 /test/ostruct/test_ostruct.rb
parentbb2ba72c3ba36d5f3d5b9497539667831bd358d5 (diff)
stop Ractor test in test-all
Ractor changes the interpreter's running mode so now it should not use in test-all process which running with many other tests. Test with a separating process is one idea, but I'm not sure the ruby/ostruct can use this trick.
Diffstat (limited to 'test/ostruct/test_ostruct.rb')
-rw-r--r--test/ostruct/test_ostruct.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index 7dd1ac626b..1e69d79dfd 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -300,6 +300,8 @@ class TC_OpenStruct < Test::Unit::TestCase
assert_equal 42, o.foo
end
+=begin
+ # now Ractor should not use in test-all process
def test_ractor
obj1 = OpenStruct.new(a: 42, b: 42)
obj1.c = 42
@@ -310,6 +312,7 @@ class TC_OpenStruct < Test::Unit::TestCase
end.take
assert obj1.object_id == obj2.object_id
end if defined?(Ractor)
+=end
def test_legacy_yaml
s = "--- !ruby/object:OpenStruct\ntable:\n :foo: 42\n"