Description: Fix flaky multipart tests that race with EPIPE.
 The writer thread may get Errno::EPIPE when the reader closes the pipe
 after correctly rejecting oversized data. This is expected and should
 not cause a test error.
Author: Utkarsh Gupta <utkarsh@debian.org>
Forwarded: not-needed
Last-Update: 2026-03-22

--- a/test/spec_multipart.rb
+++ b/test/spec_multipart.rb
@@ -246,6 +246,8 @@
       wr.write("--AaB03x--\r\n")
       wr.close
       true
+    rescue Errno::EPIPE
+      true
     end
 
     fixture = {
@@ -282,6 +284,8 @@
       wr.write("\r\n--AaB03x--\r\n")
       wr.close
       true
+    rescue Errno::EPIPE
+      true
     end
 
     fixture = {
