From cb681c20c09431d1cd441328fd7b27abdec93299 Mon Sep 17 00:00:00 2001 From: Koichi Sasada 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. --- test/webrick/test_filehandler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/webrick') 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 -- cgit v1.2.3