diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 18157fabf1..a979482e72 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1370,7 +1370,7 @@ class TestIO < Test::Unit::TestCase
     end
   end
 
-  def test_close_read_pipe_nosync
+  def test_write_epipe_nosync
     assert_separately([], <<-"end;")
       r, w = IO.pipe
       r.close