aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_ractor.rb')
-rw-r--r--bootstraptest/test_ractor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 0720c01caa..7101964a31 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -201,8 +201,8 @@ assert_equal 'ok', %q{
# Raise Ractor::ClosedError when try to send into a closed actor
assert_equal 'ok', %q{
r = Ractor.new { Ractor.receive }
+ r.close_incoming
- r.close
begin
r.send(1)
rescue Ractor::ClosedError
@@ -219,7 +219,7 @@ assert_equal 'ok', %q{
Ractor.receive
end
- r.close
+ r.close_outgoing
begin
r.take
rescue Ractor::ClosedError