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
Родитель f7be85a2b7
Коммит cb681c20c0
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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