diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-02-29 00:43:41 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-02-29 00:43:41 +0900 |
commit | cb681c20c09431d1cd441328fd7b27abdec93299 (patch) | |
tree | 17c0539ed09b88a05ee5d00027a762cdc4ade0eb | |
parent | f7be85a2b7b2f1e3485c6da8fb990ac47059ae12 (diff) |
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.
-rw-r--r-- | test/webrick/test_filehandler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb index 49b5de080a..ef56762abe 100644 --- a/test/webrick/test_filehandler.rb +++ b/test/webrick/test_filehandler.rb @@ -177,7 +177,8 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase assert_equal("206", res.code, log.call) assert_equal("multipart/byteranges", res.content_type, log.call) } - + ensure + server[:DocumentRootOptions].delete :NondisclosureName end end |