Skip to content

Commit

Permalink
add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer committed Oct 14, 2023
1 parent 70eaf20 commit 3b8c716
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/faraday/adapter/typhoeus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,20 @@
it 'succeeds' do
expect(conn.get('/').status).to be(200)
end

it 'sets timings' do
response = conn.get('/')
# TODO: make these not-nil after https://github.com/bblimke/webmock/pull/1038 lands
expect(response.env.custom_members[:typhoeus_timings]).to eq({
appconnect: nil,
connect: nil,
namelookup: nil,
pretransfer: nil,
redirect: nil,
starttransfer: nil,
total: nil
})
end
end

context 'failed connection' do
Expand Down

0 comments on commit 3b8c716

Please sign in to comment.