From ab9a0fb4ad24c0740ccc4552d98af15c38b01475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 2 Oct 2015 01:03:00 +0200 Subject: [PATCH] Skip proxy auth test for EM due to em-socksify bug --- test/adapters/integration.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/adapters/integration.rb b/test/adapters/integration.rb index 4e0f81cf..800ee388 100644 --- a/test/adapters/integration.rb +++ b/test/adapters/integration.rb @@ -207,8 +207,10 @@ module Adapters conn.get '/echo' 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 + # EM raises "connection closed by server" due to https://github.com/igrigorik/em-socksify/pull/19 assert_equal %{407 "Proxy Authentication Required "}, err.message end end