[前][次][番号順一覧][スレッド一覧]

ruby-changes:60225

From: Koichi <ko1@a...>
Date: Sat, 29 Feb 2020 00:49:03 +0900 (JST)
Subject: [ruby-changes:60225] cb681c20c0 (master): restore server[:DocumentRootOptions] setting.

https://git.ruby-lang.org/ruby.git/commit/?id=cb681c20c0

From cb681c20c09431d1cd441328fd7b27abdec93299 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Sat, 29 Feb 2020 00:43:41 +0900
Subject: restore server[:DocumentRootOptions] setting.

Surprisingly (at least for me), `server[:DocumentRootOptions]`
on Webrick is global information and it affect the result of
test_short_filename. Random order test fails because of global
information change. I doubt it is bug, but to fix random order
test, I restore the value.

diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb
index 49b5de0..ef56762 100644
--- a/test/webrick/test_filehandler.rb
+++ b/test/webrick/test_filehandler.rb
@@ -177,7 +177,8 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/webrick/test_filehandler.rb#L177
         assert_equal("206", res.code, log.call)
         assert_equal("multipart/byteranges", res.content_type, log.call)
       }
-
+    ensure
+      server[:DocumentRootOptions].delete :NondisclosureName
     end
   end
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]