mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-09 00:04:39 -04:00
Skip proxy auth test for EM due to em-socksify bug
This commit is contained in:
parent
bc453746c1
commit
ab9a0fb4ad
@ -207,8 +207,10 @@ module Adapters
|
|||||||
conn.get '/echo'
|
conn.get '/echo'
|
||||||
end
|
end
|
||||||
|
|
||||||
unless self.class.ssl_mode? && self.class.jruby?
|
unless self.class.ssl_mode? && (self.class.jruby? ||
|
||||||
|
adapter == :em_http || adapter == :em_synchrony)
|
||||||
# JRuby raises "End of file reached" which cannot be distinguished from a 407
|
# JRuby raises "End of file reached" which cannot be distinguished from a 407
|
||||||
|
# EM raises "connection closed by server" due to https://github.com/igrigorik/em-socksify/pull/19
|
||||||
assert_equal %{407 "Proxy Authentication Required "}, err.message
|
assert_equal %{407 "Proxy Authentication Required "}, err.message
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user