summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-02-28 15:43:41 (GMT)
committerKoichi Sasada <ko1@atdot.net>2020-02-28 15:43:41 (GMT)
commitcb681c20c09431d1cd441328fd7b27abdec93299 (patch)
tree17c0539ed09b88a05ee5d00027a762cdc4ade0eb
parentf7be85a2b7b2f1e3485c6da8fb990ac47059ae12 (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.rb3
1 files changed, 2 insertions, 1 deletions
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
assert_equal("206", res.code, log.call)
assert_equal("multipart/byteranges", res.content_type, log.call)
}
-
+ ensure
+ server[:DocumentRootOptions].delete :NondisclosureName
end
end