Skip to content
This repository
Browse code

fixes wrongly used call to `Socket#shutdown`

refs #176
  • Loading branch information...
commit a0d4a21fd3fec5441e257c62030e46d47f20af56 1 parent 3b872c6
Niklas Baumstark authored halogenandtoast committed

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  spec/browser_spec.rb
4  spec/browser_spec.rb
@@ -68,7 +68,9 @@
68 68
 
69 69
     after do
70 70
       @server_thread.kill
71  
-      @server.shutdown
  71
+      # workaround for ENOTCONN error triggered by `shutdown` on some platforms
  72
+      @server.shutdown rescue Errno::ENOTCONN nil
  73
+      @server.close
72 74
     end
73 75
 
74 76
     it "doesn't accept a self-signed certificate by default" do

0 notes on commit a0d4a21

Please sign in to comment.
Something went wrong with that request. Please try again.