summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 5d14aae601..5c98a59be0 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -533,9 +533,10 @@ class TestIO < Test::Unit::TestCase
if have_nonblock?
def test_copy_stream_no_busy_wait
+ msg = 'r58534 [ruby-core:80969] [Backport #13533]'
IO.pipe do |r,w|
r.nonblock = true
- assert_cpu_usage_low('r58534 [ruby-core:80969] [Backport #13533]') do
+ assert_cpu_usage_low(msg, pct: 0.11) do
th = Thread.new { IO.copy_stream(r, IO::NULL) }
sleep 0.1
w.close