After this fix, all tests except test_client_expire are
passing on my system (macos 10.12.6). Honestly, I don't
really care if it's working perfectly fine. It's just
nice to be able to run the same server on development
machine. Production is of course Linux.
---
test/test_bin.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/test_bin.rb b/test/test_bin.rb
index 6d4faf6..fc85992 100644
--- a/test/test_bin.rb
+++ b/test/test_bin.rb
@@ -99,7 +99,10 @@ def bin_daemon(worker, inherit)
# Even with a synchronous FD_CLOEXEC, there's a chance of a race
# because the server does not bind right away.
unless inherit
- @srv.shutdown
+ begin
+ @srv.shutdown
+ rescue Errno::ENOTCONN
+ end
@srv.close
end
exec(*@cmd)
--
2.19.2