We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a026f commit 94287b1Copy full SHA for 94287b1
bootstraptest/test_ractor.rb
@@ -1188,15 +1188,15 @@ def /(other)
1188
}
1189
1190
# Ractor.make_shareable(a_proc) requires a shareable receiver
1191
-assert_equal '[:ok, :error]', %q{
+assert_equal '[:ok, "Proc\'s self is not shareable:"]', %q{
1192
pr1 = nil.instance_exec { Proc.new{} }
1193
pr2 = Proc.new{}
1194
1195
[pr1, pr2].map do |pr|
1196
begin
1197
Ractor.make_shareable(pr)
1198
- rescue Ractor::Error
1199
- :error
+ rescue Ractor::Error => e
+ e.message[/^.+?:/]
1200
else
1201
:ok
1202
end
0 commit comments