Skip to content

Commit

Permalink
fixes wrongly used call to Socket#shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasb authored and halogenandtoast committed Oct 14, 2011
1 parent 3b872c6 commit a0d4a21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/browser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@

after do
@server_thread.kill
@server.shutdown
# workaround for ENOTCONN error triggered by `shutdown` on some platforms
@server.shutdown rescue Errno::ENOTCONN nil
@server.close
end

it "doesn't accept a self-signed certificate by default" do
Expand Down

0 comments on commit a0d4a21

Please sign in to comment.