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