зеркало из https://github.com/github/ruby.git
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:
Родитель
f7be85a2b7
Коммит
cb681c20c0
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче