diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2025-11-01 11:41:23 +0100 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2025-11-01 12:16:04 +0100 |
| commit | 94287b1e18edee04a0fd646fde84fe1178ce46d1 (patch) | |
| tree | 47f0e027bc39da6f412b0cff563a2df2627a8d9d | |
| parent | 33a026fedd43fa5472937e77834397742fed6180 (diff) | |
Make the expectation more precise in Ractor.make_shareable(Proc) test
| -rw-r--r-- | bootstraptest/test_ractor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index a437faeac1..f008bc82a4 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -1188,15 +1188,15 @@ assert_equal 'true', %q{ } # Ractor.make_shareable(a_proc) requires a shareable receiver -assert_equal '[:ok, :error]', %q{ +assert_equal '[:ok, "Proc\'s self is not shareable:"]', %q{ pr1 = nil.instance_exec { Proc.new{} } pr2 = Proc.new{} [pr1, pr2].map do |pr| begin Ractor.make_shareable(pr) - rescue Ractor::Error - :error + rescue Ractor::Error => e + e.message[/^.+?:/] else :ok end |
