mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-16 00:02:43 -04:00
Compare commits
3 Commits
463bf15ba8
...
9b2c8e773d
Author | SHA1 | Date | |
---|---|---|---|
|
9b2c8e773d | ||
|
607fa42672 | ||
|
0ce42ba694 |
@ -173,9 +173,9 @@ class FaradayTest < Minitest::Test
|
||||
def test_adapter_timeouts_write_timeout
|
||||
start_test_servlet(SlowReader) do |server|
|
||||
uri = URI("#{server.origin}/")
|
||||
conn = faraday_connection(request: { write_timeout: 0.5 })
|
||||
conn = faraday_connection(server_uri: uri.origin, request: { write_timeout: 0.5 })
|
||||
assert_raises Faraday::TimeoutError do
|
||||
conn.post(uri, StringIO.new("a" * 65_536 * 3 * 5))
|
||||
conn.post("/", "a" * 65_536 * 3 * 5)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user