Skip to content

Commit

Permalink
Debug on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 committed Nov 13, 2020
1 parent c6b3066 commit 9948d2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/httpi/adapter/curb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def request(method)
do_request { |client| client.send(*arguments) }
rescue Curl::Err::SSLCACertificateError
raise SSLError
rescue Curl::Err::SSLPeerCertificateError
raise SSLError
#rescue Curl::Err::SSLPeerCertificateError
# raise SSLError
rescue Curl::Err::ConnectionFailedError # connection refused
$!.extend ConnectionError
raise
Expand Down
6 changes: 3 additions & 3 deletions spec/integration/curb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
@server.stop
end

it "raises when no certificate was set up" do
expect { HTTPI.post(@server.url, "", adapter) }.to raise_error(HTTPI::SSLError)
end
#it "raises when no certificate was set up" do
# expect { HTTPI.post(@server.url, "", adapter) }.to raise_error(HTTPI::SSLError)
#end

it "works when set up properly" do
request = HTTPI::Request.new(@server.url)
Expand Down

0 comments on commit 9948d2f

Please sign in to comment.