1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Koichi Sasada 2020-02-29 00:43:41 +09:00
parent f7be85a2b7
commit cb681c20c0

View file

@ -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