From 8e1d3e549872b621b018cfab925cc6677938d258 Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 24 Sep 2005 11:25:29 +0000 Subject: [PATCH] * test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version 1.2. [ruby-dev:27312] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/net/http/test_http.rb | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0a81b0647a..201099c7f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 24 20:20:05 2005 Minero Aoki + + * test/net/http/test_http.rb (teardown): ensure that Net::HTTP is + version 1.2. [ruby-dev:27312] + Sat Sep 24 11:44:28 2005 Minero Aoki * test/net/http/test_http.rb: new file. diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 2e9a17e2b0..ea0d7cf343 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -270,6 +270,11 @@ module TestNetHTTPUtils spawn_server end + def teardown + # resume global state + Net::HTTP.version_1_2 + end + def spawn_server return if $test_net_http_server_running server = WEBrick::HTTPServer.new(