Permalink
Browse files

fixes wrongly used call to `Socket#shutdown`

  • Loading branch information...
1 parent e442150 commit 6a4143c267b2af211a99e5297849f21638af9b29 @niklasb niklasb committed with halogenandtoast Oct 14, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/browser_spec.rb
View
@@ -141,7 +141,9 @@
after do
@proxy.kill
- @server.shutdown
+ # workaround for ENOTCONN error triggered by `shutdown` on some platforms
+ @server.shutdown rescue Errno::ENOTCONN nil
+ @server.close
end
it 'uses the HTTP proxy correctly' do

0 comments on commit 6a4143c

Please sign in to comment.