summaryrefslogtreecommitdiff
path: root/test/fiber
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-07-23 23:44:25 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-07-23 23:44:25 +0900
commit098e8c2873ed7cfa276aa87967ce28ac711cbb30 (patch)
tree254299ad15003cc881b0ca4b22bd5db902b8b60f /test/fiber
parente43d62957599ea6607ceb851b7bd9d90148de16b (diff)
Suppress "assigned but unused variable" warnings
Diffstat (limited to 'test/fiber')
-rw-r--r--test/fiber/test_io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/test_io.rb b/test/fiber/test_io.rb
index 270e4f35e7..c23f67edaa 100644
--- a/test/fiber/test_io.rb
+++ b/test/fiber/test_io.rb
@@ -44,14 +44,14 @@ class TestFiberIO < Test::Unit::TestCase
skip unless defined?(UNIXSocket)
16.times.map do
- thread = Thread.new do
+ Thread.new do
i, o = UNIXSocket.pair
scheduler = Scheduler.new
Thread.current.scheduler = scheduler
Fiber do
- message = i.read(20)
+ i.read(20)
i.close
end