summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-08-08 13:43:50 +0000
committerHans de Graaff <graaff@gentoo.org>2010-08-08 13:43:50 +0000
commit4e58b1f71b363d2d1f2f937302762aafbf662244 (patch)
tree9d9fbbbc723eb66ecb0f83f037f4c254e2a0e4d0 /dev-ruby/eventmachine/files
parentRemove old versions. (diff)
downloadgentoo-2-4e58b1f71b363d2d1f2f937302762aafbf662244.tar.gz
gentoo-2-4e58b1f71b363d2d1f2f937302762aafbf662244.tar.bz2
gentoo-2-4e58b1f71b363d2d1f2f937302762aafbf662244.zip
Fix failing test, bug 299782.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/eventmachine/files')
-rw-r--r--dev-ruby/eventmachine/files/eventmachine-0.12.10-https-test.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-ruby/eventmachine/files/eventmachine-0.12.10-https-test.patch b/dev-ruby/eventmachine/files/eventmachine-0.12.10-https-test.patch
new file mode 100644
index 000000000000..d589d71ce650
--- /dev/null
+++ b/dev-ruby/eventmachine/files/eventmachine-0.12.10-https-test.patch
@@ -0,0 +1,22 @@
+commit 63f2debff906a0f51bb807ac8f67c749d72b492d
+Author: Michael S. Klishin <michael@novemberain.com>
+Date: Sun May 23 21:09:03 2010 +0400
+
+ Makes HTTPS client tests pass
+
+ https://www.amazon.com now redirects to http version. Switching site
+ is enough to make the test pass.
+
+diff --git a/tests/test_httpclient2.rb b/tests/test_httpclient2.rb
+index ef72e7c..4705e42 100644
+--- a/tests/test_httpclient2.rb
++++ b/tests/test_httpclient2.rb
+@@ -142,7 +142,7 @@ class TestHttpClient2 < Test::Unit::TestCase
+ def test_https_get
+ d = nil
+ EM.run {
+- http = EM::P::HttpClient2.connect :host => 'www.amazon.com', :port => 443, :ssl => true
++ http = EM::P::HttpClient2.connect :host => 'www.apple.com', :port => 443, :ssl => true
+ d = http.get "/"
+ d.callback {
+ EM.stop