about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/lib_read_write.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb
index c4c4457..897e6b2 100644
--- a/test/lib_read_write.rb
+++ b/test/lib_read_write.rb
@@ -21,7 +21,9 @@ module LibReadWriteTest
 
   def test_write_closed
     @rd.close
-    assert_raises(Errno::EPIPE) { loop { @wr.kgio_write "HI" } }
+    assert_raises(Errno::EPIPE, Errno::ECONNRESET) {
+      loop { @wr.kgio_write "HI" }
+    }
   end
 
   def test_write_conv