diff --git a/test/helpers/integration.rb b/test/helpers/integration.rb index b13ef2a312..05ab7a476a 100644 --- a/test/helpers/integration.rb +++ b/test/helpers/integration.rb @@ -178,7 +178,7 @@ def thread_run_refused(unix: false) if unix [Errno::ENOENT, IOError] else - DARWIN ? [Errno::ECONNREFUSED, Errno::EPIPE, EOFError] : + DARWIN ? [Errno::EBADF, Errno::ECONNREFUSED, Errno::EPIPE, EOFError] : [Errno::ECONNREFUSED] end end