mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-15 00:01:02 -05:00
fixing log_exception signature
This commit is contained in:
parent
1e21c33da0
commit
cb3e57e10d
@ -4,7 +4,7 @@ module HTTPX
|
||||
end
|
||||
|
||||
module Loggable
|
||||
def log: (?level: Integer, ?color: Symbol) { () -> String } -> void
|
||||
def log: (?level: Integer?, ?color: Symbol?) { () -> String } -> void
|
||||
|
||||
def log_exception: (StandardError, **untyped) -> void
|
||||
end
|
||||
|
||||
@ -59,7 +59,7 @@ module Requests
|
||||
end
|
||||
end
|
||||
|
||||
def test_plugin_stream_connnectionn_error
|
||||
def test_plugin_stream_connection_error
|
||||
session = HTTPX.with_timeout(total_timeout: 1).plugin(:stream)
|
||||
|
||||
assert_raises(HTTPX::TimeoutError) do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user