about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-12-08 08:30:19 +0000
committerEric Wong <e@80x24.org>2018-12-08 11:24:47 +0000
commit59550b6ee9a4c801a7c44e9bd2ba29037d45b561 (patch)
tree3e9442f34843ef36c7cc3d399e53e06fd040336d
parentbe8c54482770e3a86020cb7ef6cf26bc5c7ebd16 (diff)
downloadyahns-59550b6ee9a4c801a7c44e9bd2ba29037d45b561.tar.gz
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.
-rw-r--r--test/test_bin.rb5
1 files changed, 4 insertions, 1 deletions
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 @@ class TestBin < Testcase
       # 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)