mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-14 00:00:49 -04:00
Compare commits
2 Commits
36017d7bf6
...
bc975f7b9b
Author | SHA1 | Date | |
---|---|---|---|
|
bc975f7b9b | ||
|
563b8e93c2 |
@ -169,6 +169,8 @@ module Faraday
|
||||
end
|
||||
|
||||
def run
|
||||
return unless @handlers.last
|
||||
|
||||
env = @handlers.last.env
|
||||
|
||||
session = HTTPX.session.with(options_from_env(env))
|
||||
|
@ -45,6 +45,11 @@ class FaradayTest < Minitest::Test
|
||||
refute_nil resp1.env[:error]
|
||||
end
|
||||
|
||||
def test_adapter_in_parallel_no_requests
|
||||
connection = create_connection
|
||||
assert_nil(connection.in_parallel {})
|
||||
end
|
||||
|
||||
def test_adapter_get_handles_compression
|
||||
res = get(build_path("/gzip"))
|
||||
assert JSON.parse(res.body.to_s)["gzipped"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user